i currently have this in my php file.
mysql_query("UPDATE inventory SET id_num ='$id_num' WHERE id_num ='$id_num'");
mysql_query("UPDATE inventory SET id_asset ='$id_asset' WHERE id_num ='$id_num'");
instead of updating this tables how do i set it up for deletion?
i’m still new to php and i thought this would work.
mysql_query("DELETE FROM inventory SET id_num ='$id_num' WHERE id_num ='$id_num'");
mysql_query("DELETE FROM inventory SET id_asset ='$id_asset' WHERE id_num ='$id_num'");
but it doesn’t unfortunately.
any help will greatly be appreciated.
thank you