Perad Posted December 19, 2007 Share Posted December 19, 2007 What I want to do is simply add an amount to the ucp_game_credits column. I do not want to call out what it is first. i.e. ucp_game_credits += $newammount How can I do this in SQL? $sql = "UPDATE ucp_users SET ucp_game_credits='???' WHERE ucp_id='". $_SESSION['uid']."'"; Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted December 19, 2007 Share Posted December 19, 2007 $sql = "UPDATE ucp_users SET ucp_game_credits=ucp_game_credits+$newamount WHERE ucp_id='". $_SESSION['uid']."'"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.