I'm trying to use a MySQL UPDATE query to update two items in a database. However, it only seems to be updating half of what is asked in the query.
The code I am using is as follows:
$db->query("UPDATE User_files SET Uploads=" . $rows['Uploads']-=1 . ", Files='" . $newfilesescaped . "' WHERE user=" . $escapeduser . "");
It updates half of the query, that being setting 'Uploads' to the correct number. However, the Files Column stays exactly the same as it was before.
I have both echoed out $newfilesescaped and also var_dumped it, both have returned the product I would like to be updated.