3
Hello,
How do I update a mysql column by always inserting +1 with each new update? And how to take -1 from the same column ?
I tried that:
"UPDATE tb_comment SET good=+1 WHERE id=:idComment"
Only that inserted only 1, did not continue counting 1.. 2..3.4. according to the updates I gave..
And to get a record I tried it:
UPDATE tb_comment SET good=-1 WHERE id=:idComment
And I failed miserably