duncan_cowan Posted January 16, 2007 Share Posted January 16, 2007 hi how do you add to a value in a mysql database with php?i have tried using this code but nothing happens: UPDATE users SET gold + '".$total_gold."' WHERE username = '".$user_details[0]."' AND password = '".$user_details[1]."' please could someone help?? thanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 16, 2007 Share Posted January 16, 2007 UPDATE users SET gold = gold + '".$total_gold."' WHERE username = '".$user_details[0]."' AND password = '".$user_details[1]."' Link to comment Share on other sites More sharing options...
duncan_cowan Posted January 16, 2007 Author Share Posted January 16, 2007 thanks alot!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now