ryeman98 Posted July 17, 2007 Share Posted July 17, 2007 Hi. On a specific part of my site, users can get points and every time they got to a page to get points, it resets their entire points count. mysql_query("UPDATE users SET points='+5" WHERE username='$username'"); Help please? Quote Link to comment Share on other sites More sharing options...
teenagegluesniffer Posted July 17, 2007 Share Posted July 17, 2007 mysql_query("UPDATE users SET points='+5' WHERE username='$username'"); BAM actually, i'm not sure that will work either...try: mysql_query("UPDATE users SET points+='5' WHERE username='$username'"); if it doesn't Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 17, 2007 Share Posted July 17, 2007 mysql_query("UPDATE users SET points=points+5 WHERE username='$username'") or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
ryeman98 Posted July 17, 2007 Author Share Posted July 17, 2007 Thanks pocobueno... you always seem to solve my problems. 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.