Jump to content

[SOLVED] UPDATE with a +1


burtybob

Recommended Posts

mysql_query("UPDATE polls SET `vanswer1`=vanswer1+'1' WHERE `pkid`='$pollid'") or die(mysql_error());

 

That is my code and i get no error from the die(mysql_error()); part so im guessing there is no problem but why wont the field known as vanswer not +1??

 

Please can anyone help?

Any suggestions are helpful.

 

 

 

EDIT: think i realised whats wrong.

Link to comment
https://forums.phpfreaks.com/topic/75124-solved-update-with-a-1/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.