WilliamMute007
Programmer
Hi,
Me again.. can anyone please advice how I can increment the value in my DB table. Say for example, increase the number of users in a DB table by 2 so if number of user was 100 before, it will now be 102. (using a HTML form)
CODE
("UPDATE tablename SET column = column ++ 2 WHERE column ID = $var"); ???
And where I need to update multiple columns how can I go about that? Say increment column 1 +1 Column 2 + 1 Column 3 + 1 etc...
Would it be something like that?
Thanks in advance
Me again.. can anyone please advice how I can increment the value in my DB table. Say for example, increase the number of users in a DB table by 2 so if number of user was 100 before, it will now be 102. (using a HTML form)
CODE
("UPDATE tablename SET column = column ++ 2 WHERE column ID = $var"); ???
And where I need to update multiple columns how can I go about that? Say increment column 1 +1 Column 2 + 1 Column 3 + 1 etc...
Would it be something like that?
Thanks in advance