Query over a form list
Can somebody tell me the correct format for querying the database when I need to pick all records that match from a form entry.
Example if somebody enters US,AU,ZA,SG into a form under the form field name form_country
The way I have it does not work
| WHERE countryshort = '#form_country#' |
This gives:
SELECT DISTINCT(countryLong) AS CountryLong,CountryShort FROM ipcountry2 WHERE countryshort = 'US,AU,ZA,SG' ORDER BY countryLong
I need to have it treat the user entry as a list
Thanks
Mark
