Hi,
I have a mySql DBtable containing info on how to create drop down lists.
Table: myDropDownLists
ID SQL
1 SELECT ID, name FROM sysUsers
2 SELECT ID, name FROM sysUsers WHERE status = 3
3 SELECT ID, name FROM sysUsers WHERE userGroup = $_POST["p_userGroupID"]
This works great for the first 2 entries in this example, but for the third SQL statement I do not get any records returned. If I traced what SQL statement was processed, I noticed that the variable was not substitited by its value.
I tried this in a zillion different ways, but I do not get it to work.
I get it to work when I assemble the SQL statement using PHP, but when I get it directly out of the DB, then the variableis not substituted
Is there someone who did this before or who knows a way to get this done?
Thx
Edward Dewolf