<?php mysql_connect("mysql153.secureserver.net","java2s","password"); $tables = mysql_list_tables("java2s"); $count = 0; while ($count < mysql_numrows($tables)) { echo mysql_tablename($tables,$count)."<br />"; $count++; } ?>