[Mapserver-users] QueryByAttributes - Search Parcels By Owner Name

Albin Blaschka albin.blaschka@sbg.ac.at
Fri, 24 Jan 2003 15:41:29 +0100


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!
////////////////////////////////////////////////////////////////////


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users