Are you sure I need it in this context? i.e. $set is used like so: $query = $update.$set.$where;
Also, qtos52 is a field from my database
I tried your suggestion as follows: -
$set = "SET qtos52 ='".($qtos52 - $orderqty[$count])."' ";
results in the same problem.
$set = "SET $qtos52 ='".($qtos52 - $orderqty[$count])."' ";
results in a syntax error.
Thanks
Chris