Skip to content
Advertisement

PHP script does not execute the MYSQL command

I want to update price on invoice with this PHP code (the config file is included, more SQL statements are executed above this):

JavaScript

full code (html form):

JavaScript

Whole script and things around are working, but the MYSQL exec. isnt working for some reasons (no errors at all)

Advertisement

Answer

This:

JavaScript

should be:

JavaScript

Don’t put parameter placeholders inside any kind of SQL quote (that is, not single-quotes, double-quotes, or back-quotes).

I also notice you did not set any value for the PHP variable $code.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement