[Mapserver-users] QueryByAttributes - Search Parcels By Owner Name
Albin Blaschka
albin.blaschka at sbg.ac.at
Fri Jan 24 06:41:29 PST 2003
Hello!
Maybe it is a php-problem:
* maybe using $HTTP_GET_VARS or HTTP_POST_VARS respectively helps
* and /or in your php.ini you have register global = off, so
$layer->setfilter("\"$OwnerName\""); should be
$layer->setfilter("\"$HTTP_GET_VARS['OwnerName']\"");
HTH,
Albin
>if ($HTTP_FORM_VARS["OwnerName"])
> {
> $layer = $gpoMap->getLayerByName("parcels");
> $layer->set("status",MS_ON);
> $layer->setfilter("\"$OwnerName\"");
> $rv = $layer->queryByAttributes($gpoMap, MS_SINGLE);
> if ($rv == MS_SUCCESS)
> {
> $parcelfound = "Parcels Found";
> }
> else
> {
> $parcelfound = "No Parcels Found";
/////////////////////////////////////////////////////////////////////
// Albin Blaschka, Mag. rer. nat.
// Department of Botany and Botanical Garden
// Workgroup for Vegetation Science
// University of Salzburg, Austria
// It´s hard to live in the mountains,
// hard, but not hopeless!
////////////////////////////////////////////////////////////////////
More information about the MapServer-users
mailing list