All I can find are answers with Joins and Inner Joins,
$sql= "DELETE FROM `Item` WHERE `ItemID`='$_POST[id]';
DELETE FROM `Info` WHERE `Item_ItemID`='$_POST[id]';
DELETE FROM `ListPics` WHERE `Item_ItemID`='$_POST[id]';";
This gives me an error.
Error: 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 'DELETE FROM `Info` WHERE
`Item_ItemID`='1'; DELETE FROM `ListPics` WHERE `I' at line 2
I don't really understand how joins work, and I'm not even sure they apply I really just want to delete the 3 rows from the 3 tables with one statment.
Infoto delete entries when the parent$itemIDis deleted.