Query calculating in double [closed]

1

I'm running this query:

$db->query("UPDATE 'stack' SET 'vote_up' = ('vote_up'+1) WHERE 'id' = '3'");

When I run this way in the PHP script it adds the vote_up + 2 but when I run in sql it does the normal sum that is vote_up + 1, what the hell is going on?

    
asked by anonymous 03.03.2015 / 01:21

0 answers