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