![]() |
How to add integer to a column?
Hello guys! Please teach me how to add an integer to a column.
Here is my code but it doesn't work. PHP Code:
|
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. |
You will insert a new table via using SQL code add your column follow it. I have given the example. Insert into Stu_Table values(1,'name');
|
Quote:
|
| All times are GMT +1. The time now is 07:17 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.