Monkuar Posted May 25, 2009 Share Posted May 25, 2009 $DB->query("UPDATE ibf_members SET points='25' WHERE id='".$ibforums->member['id']."'"); Ok I dont want to set the points to 25 I want so everytime the use refreshes this query it addes +25 to the value of points instead of setting it. possible? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/159531-solved-mysql-query-adding/ Share on other sites More sharing options...
Maq Posted May 25, 2009 Share Posted May 25, 2009 I hope points is an INT... SET points=points + 25 Quote Link to comment https://forums.phpfreaks.com/topic/159531-solved-mysql-query-adding/#findComment-841506 Share on other sites More sharing options...
Monkuar Posted May 25, 2009 Author Share Posted May 25, 2009 I hope points is an INT... SET points=points + 25 Man I love u. Thanks alot my brother. Quote Link to comment https://forums.phpfreaks.com/topic/159531-solved-mysql-query-adding/#findComment-841507 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.