I have simple piece of code where I need to select records based on some criteria:
SELECT RegionName, RegionName FROM regions ORDER BY RegionName WHERE Country={Country}
The {Country} refers to the screen variable on the same form
This code results however SQL runtime error
Error while accessing the database:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE Country=’ at line 1
(despite I use AJAX). It seems like {Country } is empty (despite is is selected from the dropdown list
any idea to fix this ?
Arthur