List all tables in a database : Database MetaData « MySQL Database « PHP






List all tables in a database

<?php

   mysql_connect("mysql153.secureserver.net","java2s","password");

   $tables = mysql_list_tables("java2s");

   while (list($table) = mysql_fetch_row($tables)) {
      echo "$table <br />";
   }

?>


           
       








Related examples in the same category

1.List all database
2.Get MySQL server information
3.Get MySQL host information
4.Get MySQL client information
5.Print all MySQL status value