Decreasing / increasing a value
Posted: Fri Jan 09, 2009 8:35 pm
I'm trying to update a database value by decreasing it each time I step into a certain page, but I'm not at all sure I'm on the right track. At least I'm trying.
As follows is the code as it is now, obviously nonworking.
As follows is the code as it is now, obviously nonworking.
Code: Select all
mysql_query("UPDATE tempurl_user SET user_adv_x - 1
WHERE id = '12'");