Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: JefferyBa
New Today: 453
New Yesterday: 618
Overall: 43924

People Online:
Visitors: 92
Members: 8
Total: 100

Online Now:
 BrandyBoy
COM JefferyBa
COM TanjaKenn
COM YasminBui
COM InesDRU
 MaeDemarc
COM GeniaSmar
COM CarriN09
 
mysql_db_name

mysql_db_name

(PHP 3>= 3.0.6, PHP 4 , PHP 5)

mysql_db_name -- Get result data

Description

string mysql_db_name ( resource result, int row [, mixed field] )

mysql_db_name() takes as its first parameter the result pointer from a call to mysql_list_dbs(). The row parameter is an index into the result set.

If an error occurs, FALSE is returned. Use mysql_errno() and mysql_error() to determine the nature of the error.

Example 1. mysql_db_name() example

<?php
error_reporting
(E_ALL);

$link = mysql_connect('dbhost', 'username', 'password');
$db_list = mysql_list_dbs($link);

$i = 0;
$cnt = mysql_num_rows($db_list);
while (
$i < $cnt) {
    echo
mysql_db_name($db_list, $i) . "\n";
    
$i++;
}
?>


For backward compatibility, mysql_dbname() is also accepted. This is deprecated, however.

See also mysql_list_dbs(), and mysql_tablename().

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.087 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::