southbeach
Programmer
I am using PHP/MySQL. I have the following query:
There is a second column named pdStatus. I would like to set status to "X" if column pdQtyOnh <= $qty.
How can I do this?
Thanks!
Code:
$usql = 'UPDATE `productsd` SET
pdQtyOnh = pdQtyOnh - ' . $qty . '
WHERE pdID = ' . $key . ' LIMIT 1;';
There is a second column named pdStatus. I would like to set status to "X" if column pdQtyOnh <= $qty.
How can I do this?
Thanks!