no problem.
so if your tablename is admin_stats you would write the sql query as
$sql = "DROP TABLE IF EXISTS admin_stats";
Of course this will only execute granted that you are
a.) The administrator of the database
b.) You have permissions to create and drop tables in your database.
I've used MySQL and MSSQL Server and in both cases you have to either be a or b otherwise that statement will fail. The following PHP snippet (you can cut and paste this in your code--use either or but not both if you have either database) will assign the $sql query to drop the table admin_stats if it exists.
// Using MySQL
$hostname = "yourhostname here";
$username = "your user name here";
$password = "your password here";
$dbtablename = "dbtablename here";
$cnx = mysql_connect($hostname, $username, $password) or die ("Cannot connect to database");
mysql_select_db($dbtablename) or die ("Cannot use $dbtablename");
$sql = "DROP TABLE IF EXISTS admin_stats";
$result = mysql_query($sql, $cnx) or die ("Could not execute SQL statement");
if (!$result) { print "Error: Could not execute. Check permissions."; }
// Using MSSQL Server with ODBC driver
$dbname = "your odbc db here";
$username = "your user name here";
$password = "your password here";
$cnx = odbc_connect($dbname, $username, $password) or die ("Cannot connect to database");
$sql = "DROP TABLE IF EXISTS admin_stats";
$result = odbc_exec($cnx, $sql) or die ("Could not execute SQL statement");
if (!$result) { print "Error: Could not execute. Check permissions."; }
good luck