This should work.
<?
// Connect to MySQL
mysql_connect("localhost","user","pass");
// Select datbase to use
mysql_select_db("database_name");
// Build and execute SQL statement to drop table
$str = "DROP TABLE table_name";
$result = mysql_query($str);
// Check the result
if ($result) echo "Success!";
else echo "Fail!";
?>