I need to increase a variable that i'm pulling from a DB the code should be $variable = $variable + 1; but how??
Use an UPDATE statement:
UPDATE tablename SET variable=variable+1;
If you actually need to increment the variable in your PHP code, then the code that you posted should work (though I would just write: ++$variable; ).
sorry 🙂) it was a query spelling mistake it worked perfectly thx anyway
Remember to mark this thread as resolved (if it is) using the thread tools.
thx fo reminding :p