0 AND longitude<>0 AND donotshow=0 AND ban<5"); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encode($output)); mysql_close(); ?>