I want to select all from the table 'products' where city IN (Varberg,Falkenberg) and if I use the below it works, but if I have the cities in a variable I can´t get it to work? I'm using a mySql database.
sql = "SELECT * FROM products where city in ('Varberg','Falkenberg')"
set rs = conn.Execute (sql)
So if I use this, it is not working.
cities=request.querystring(cities)
so that the variable becomes like this
cities="Varberg,Falkenberg"
sql = "SELECT * FROM products WHERE city IN ('"& cities &"')"
set rs = conn.Execute (sql)