How to add integer to a column?
View Single Post
10-26-2012, 03:50 PM
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Thanked 2,598 Times in 2,567 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