How to add integer to a column?
View Single Post
10-26-2012, 02:50 PM
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Thanked 2,450 Times in 2,419 Posts
This is a SQL issue, not a PHP one.
You cannot increment in SQL, you must set the value to its increment. That would be a simple
SET `views` = `views` + 1
View Public Profile
Find More Posts by Fou-Lu