Thread
:
How to add integer to a column?
View Single Post
10-26-2012, 02:50 PM
PM User
|
#
2
Fou-Lu
God Emperor
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,645
Thanks: 4
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
.
Fou-Lu
View Public Profile
Find More Posts by Fou-Lu