Hi,<br><br>Where can I find more information about the queryByAttributes() function? I found <a href="http://mapserver.org/mapscript/php/index.html#layerobj-class">http://mapserver.org/mapscript/php/index.html#layerobj-class</a> , but it is not very detailed. By trial and error I found that for a PostGIS layer, I should use this syntax:<br>
<br><span style="font-family: courier new,monospace;">layer.queryByAttributes(map, null, &quot;myfield=&#39;searchValue&#39;&quot;, mapscript.MS_MULTIPLE);</span><br><br>but for shapefiles, it seems it should be:<br><br><span style="font-family: courier new,monospace;">layer.queryByAttributes(map, &quot;myfield&quot;, &quot;searchValue&quot;, 
mapscript.MS_MULTIPLE);</span><br><br>I am trying to write some generic code, but that&#39;s hard if there is no single way to call this method. Also, I haven&#39;t found a way yet to do a partial match on a shapefile (PostGIS supports &#39;LIKE&#39;)<br>
<br>Regards,<br>Berend Veldkamp<br>