mysql - Phantom mysql_error from PHP -


I have this sql statement, when I run it in phpmyadmin, but raises an unreliable obscure server Mysql_error When I run it from PHP:

There is an error in your SQL syntax; Related to your MySQL server version for the correct syntax to use the '' Passed ''

  UPDATE srSignals SET falseBreak = "true", '  Check manual. Full SQL Statement:  
  UPDATE srSignals SET falseBreak = "true", candleClose = 1.51132, results = -   48 WHERE id = 4429; Updated srSignals SET falseBreak = "true", candleClose = 1.51132, results = -27 WHERE id = 4431;   

What is wrong with this statement, or why does PHP not work through PHP's request when copied / pasted in the phpmyadmin?

Your syntax is incorrect You should not use single quotes such as not double quotes like teas:

  update srsignals SET falseBreak = 'true', candleClose = 1.51132, results = -48 WHERE id = 4429; Update srsignals SET falseBreak = 'true', Candle Close = 1.51132, Results = -27 WHERE id = 4431;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -