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! 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 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. Link to comment https://forums.phpfreaks.com/topic/159531-solved-mysql-query-adding/#findComment-841507 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.