[Mapserver-users] queryByAttributes/mapscript
Pedro A. Carrasco Ponce
pedro.carrasco@iver.es
Mon, 19 Jan 2004 18:41:07 +0100
robert fritz wrote:
> Hello,
>
> I want to use php_mapscript and querybyAttributes, but I do not now how to use it.
> What do I have to use for qitem & qstring (int queryByAttributes(string qitem, string qstring, int mode))?
> I know how to use qstring & qitem via cgi, but i do not know how to use qstring etc. and mapscript.
>
Hello,
I made this:
In a layer named $lyrPobs:
$lyrPobs->queryByAttributes('ID','/'.$filter.'/',MS_MULTIPLE);
$filter is defined like:
filter = '12123|1231321|3243343|2324324'
So it search for the ID's:
12123, 1231321, 3243343, 2324324
if you search for only one ID the $filter is "/ID/"
Hope help you.
Regards.
--
Pedro
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users