mysql_list_tables.php : mysql_list_tables « MySQL Database « PHP






mysql_list_tables.php

 
<?php
   mysql_connect("localhost","root","");
   $tables = mysql_list_tables("mydatabase");
   while (list($table) = mysql_fetch_row($tables))
   {
      echo "$table <br />";   
   }
?>
  
  








Related examples in the same category

1.Listing Tables