DELETE * FROM image_upload WHERE image_id=51You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM image_upload WHERE image_id=51' at line 1
if(!empty($_GET['image_id']))
{
$sqlstr = "DELETE * FROM image_upload WHERE image_id=".$_GET['image_id'];
//echo $sqlstr;
$result = mysql_query($sqlstr) or die(mysql_error());
$confirmation = ($result) ? "Data has been saved." : "Fail to save data.";
}
Why there is that You have an error in your SQL syntax?