WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

MySQL problem with updating two tables

0

0%

Status

Offline

Posts

33

Likes

0

Rep

0

Bits

175

8

Months of Service

0%
I'm encountering an error while trying to subtract one from the 'product_quantity' field in the 'products' table when adding a new customer who has purchased a product. I have two tables named 'customers' and 'products'. I want the quantity of the product the customer purchased to decrease in the 'products' table. The logic seems correct to me, but I'm still getting an error. What could be the issue?
 

254

6,645

6,665

Top