ң

mysql_db_name

(PHP 3>= 3.0.6, PHP 4)

mysql_db_name - .

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

mysql_db_name() mysql_list_dbs() . row .

, FALSE . mysql_errno() mysql_error() .

1. mysql_db_name()
<?php error_reporting(E_ALL); mysql_connect('dbhost', 'username', 'password'); $db_list = mysql_list_dbs(); $i = 0; $cnt = mysql_num_rows($db_list); while ($i < $cnt) { echo mysql_db_name($db_list, $i) . "\n"; $i++; } ?>

mysql_dbname(), .


ң
mysql_data_seek mysql_db_query