php - Can't update row in database -


I try to update a line in the database, but I can not do this Here's my SQL:

  $ sql = "UPDATE` voter_name_imount_tount` SET` volume` = quantity + 1 where` tender` = '$ nid' and nominee = '$ named'; " ;   

I suspect that the problem is here - and the nominee = '$ Named' ''; Because when I remove all functions and updates from the query correctly, please help.

Try this:

  $ sql = "UPDATE voting_nomination_counter set quantity = Quantity + 1 Where Nadil = '$ Nid' and nominee = '$ Nominated' '' ';    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -