maxso Posted December 23, 2008 Share Posted December 23, 2008 I need to set my count +1 to my database field. The way i have found is like this. $result = mysql_query("UPDATE server1 SET count='+1' WHERE ip='$ip'") or die(mysql_error()); This sets it to +1. I want to add 1 to the number, what should it be and what should my char be in my database. Quote Link to comment https://forums.phpfreaks.com/topic/138242-solved-1-to-database-count/ Share on other sites More sharing options...
Maq Posted December 23, 2008 Share Posted December 23, 2008 $result = mysql_query("UPDATE server1 SET count=count+1 WHERE ip='$ip'") or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/138242-solved-1-to-database-count/#findComment-722762 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.