Jump to content

[SOLVED] +1 to database count


maxso

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/138242-solved-1-to-database-count/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.