Saturday, March 10, 2007

Deete Table from Mysql Database using PHP function (NO SQL)

Like the previous function, again, you get to call a function in PHP that does all the SQL work for you...
//
function db_table_delete($table,$where,$equals)
{
mysql_query("DELETE FROM `".$table."` WHERE `".$where."` = '".$equals."'");
}
//

No comments: