Copy CodeThe code is as follows:
$server = ' localhost ';
$user = ' root ';
$pass = ";
$dbname = ' dayanmei_com ';
$conn = mysql_connect ($server, $user, $pass);
if (! $conn) Die ("Database system Connection Failed! ");
mysql_select_db ($dbname) or Die ("Database connection failed! ");
$result = mysql_query ("SHOW TABLES");
while ($row = Mysql_fetch_array ($result))
{
echo $row [0]. "";
}
Mysql_free_result ($result);
Note the PHP list of all table names in MySQL function mysql_list_tables, has been deleted, it is recommended not to use the function list MySQL data table
http://www.bkjia.com/PHPjc/323245.html www.bkjia.com true http://www.bkjia.com/PHPjc/323245.html techarticle Copy the code as follows: $server = ' localhost '; $user = ' root '; $pass = '; $dbname = ' dayanmei_com '; $conn = mysql_connect ($server, $user, $pass); if (! $conn) Die ("Database system connected ...