if($city_id = (int)$_POST['city_id']) { $city = mysql_query("SELECT name FROM city WHERE city_id=city_id" . $post['city_id']); }