Location: PHPKode > projects > PHP SQL tools > prfile/deletetable.php
<?
include("identify.php");
load_all("deletetable",10);
//include("levelten.inc");

$sql = "DROP TABLE $table_name";

$result = mysql_query($sql, $main_settings->connection) or die("Couldn't execute query.");

if ($result) {
	$msg = "<p>$table_name has been deleted</p>";
}

?>


<!doctype html public "-//w3c//dtd html 3.2//en">

<html>

<head>
<title>Creating New Table</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
</head>

<body>


<?
topheader();
echo "<b>Delete Table</b>";
botheader();
topcontent();
 echo "$msg"; ?><br>

<center><a href="databases.php">Databases menu</a></center>
<? botcontent();
include("botpage.inc");
?>

</body>

</html>
Return current item: PHP SQL tools