Jump to content

adding to value


duncan_cowan

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...