wert
04-25-2003, 07:45 PM
Hi there, Im trying to query something like this:
UPDATE Caja SET Monto -$SubTotal WHERE Tienda = $Tienda
let's say that :
$SubTotal = 50
$Tienda = 1 (it really does not matter, it's just an index)
and obviouslly it does not work !!
I want to save me the "Talacha" of select first the Monto from Caja, make the simple arithmetic operation in php an then put the new value back on the table (Caja).
if any one out there can helpme to avoid the "TAlacha" it will be great, Thnx.
UPDATE Caja SET Monto -$SubTotal WHERE Tienda = $Tienda
let's say that :
$SubTotal = 50
$Tienda = 1 (it really does not matter, it's just an index)
and obviouslly it does not work !!
I want to save me the "Talacha" of select first the Monto from Caja, make the simple arithmetic operation in php an then put the new value back on the table (Caja).
if any one out there can helpme to avoid the "TAlacha" it will be great, Thnx.