Column state
belongs to table2
and consists of the following varchars: "AL","AK",..
In my php code I have the following String: $states="AL,AK,AZ,IL";
I tried to use it in mySQL query in the following way:
$query = SELECT * FROM 'table2' WHERE 'state' IN('$states');
It does not show any results... What is the correct syntax for those apostrophes?