D
|
danaci 5/21/2012 |
CustomQuery("Update table2 set quantity = quantity - ".'$values["quantity"]'." where id = ".'$values["id"]'); |
J
|
joiresende author 5/21/2012 |
Unfortunately still gives syntax error |
D
|
danaci 5/21/2012 |
$sql = ("SELECT quantity FROM table2 WHERE your_condition"); |
![]() |
Sergey Kornilov admin 5/21/2012 |
As a typical suggestion print your SQL Query on the page instead of executing it. This way you can see what causes the syntax error. |
S
|
stiven 5/21/2012 |
|
J
|
joiresende author 5/21/2012 |
Stivens |