Im getting an sql error saying "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1"
These are the 2 queries...
$sql = "DELETE FROM tbl_category WHERE cat_id=$cid";
$sql2="INSERT INTO tbl_sales (order_id,customer_id) VALUES ($row[order_id],$row[cus_id]) WHERE order_id='$index'";
Cannot figure it out whats wrong? can some one help me please..