Hi All,
I have these two UPDATE queries:
mysql_query("UPDATE merch SET UnSold = UnSold + $diff WHERE id = $MerchID") or die(mysql_error());
mysql_query("UPDATE cart SET qty = $newQty WHERE id = $CartID") or die(mysql_error());
Echoed, I get:
UPDATE merch SET UnSold = UnSold + 1 WHERE id = 1
UPDATE cart SET qty = 4 WHERE id = 18423
Putting those into phpymadmin updates the entries fine, but it just doesn't seem to be working in the code. I have loads of other similar queries that work fine.
The or die function doesn't seem to report anything back.
Any ideas?
Thanks