Try changing your variable assignments from the posted variables from
$city = $_POST[city];
to $city = $_POST[[size=99px]’[/size]city[size=99px]’[/size]];
Note the RED single quotes ’
The $_POST is an array. Typically it expects an Index. Old school always meant a numeric Index, however PHP allows a string to be an index. Without quoting the string, PHP has to “GUESS” and as you may guess, the results are not always what are desired. ESPECIALLY if one of your string indexes (not quoted) are a keyword somewhere else in PHP
Also are there any error messages? What happens if you just echo out the SQL statement?