I have solved it. I defined the layer as STATUS ON and I defined the TEMPLATE. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/php-mapscript-problem-postgis-query-by-point-tp4997536p5108383.html Sent from the Mapserver - User mailing list archive at Nabble.com.