$sql = 'SELECT `name` FROM `city` WHERE `city_id` = ' . $id; echo $sql . '<br>'; $q = mysql_query($sql) or die (__FILE__ .'/'. __LINE__ .' '. mysql_error());