[Mapserver-users] queryByAttributes/mapscript
Pedro A. Carrasco Ponce
pedro.carrasco at iver.es
Mon Jan 19 09:41:07 PST 2004
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
More information about the MapServer-users
mailing list