Thank u matt

It really helped me and it worked just as you said.

I'm really thankful cause you replied very fast and I could solve my urgent problem.  For all those who have the same problem just remember that:

FILTER is an option that works as a WHERE sentence in SQL so don't forget to write the value of the variable in ' '  couse it was my mistake.

As an example I had a PostGis table and had a column called type. I just wanted to retrieve all the data wich value were (street) so the correct statement was:


FILTER " type='street' "

and using the variable

FILTER "type= '%myvar%'"


and in the URL need to pass the variable as

....mode=browse&myvar=street

Thank u mat

View this message in context: Re: Passing a variable in mapserver
Sent from the Mapserver - User forum at Nabble.com.

Reply via email to