[mapserver-users] setFilter in PHP
Pedro Carrasco
pcarrasco at iver.es
Thu Sep 19 10:27:32 PDT 2002
Hi all,
I'm trying to apply a filter in a layer and I make this in PHP:
$ids = '18558|17826|13264|22503|22295|19396|8266 ';
$lyr->set('filteritem','ID');
$lyr->setFilter("/$ids/");
but the map is empty, if I made the modification in the map file:
FILTERITEM "ID"
FILTER /18558|17826|13264|22503|22295|19396|8266/
It works fine.
What is wrong in the PHP mode?
Thanks in advance and regards.
--
<Pedro/>
"Quedarse en lo conocido por miedo a lo desconocido
es lo mismo que mantenerse con vida pero no vivir"
More information about the MapServer-users
mailing list