<?php $conn = mysql_connect("localhost", "root", "root");mysql_select_db("test1");$result = mysql_list_tables("test1");while($table = mysql_fetch_array($result)) {$query = "DROP TABLE `".$table[0]."`";echo $query;mysql_query($query);} ?>