You know, like echo "lat = $lat <br>"; Code (markup): you echo $query; Code (markup): so that we can see if the query looks ok