im trying to delete records from my db using this code:
<? include "connect.php"; $id = $_REQUEST['id']; $query = "DELETE FROM gallery WHERE id = '$id'"; $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error()); echo "Database Updated."; ?>I get the error:
Cannot query the database.
Query was empty
anyone know where im going wrong?