[MAPSERVER-USERS] php database mapfile

nickthegreek- nickthegreek_ at hotmail.com
Sat Apr 5 19:38:13 EDT 2008


hello.. what i wanna know is.. i have in my application a box checked box
which say e,g rivers..

when someone ticks it.. then in the map apperas the rives..what i mean is
..in php code.. the status in the rivers layer is converting in ON and
display..from the code below


 if (preg_match("/cities/", $layers)){
 	
 	$cities = "CHECKED";
 	$this_layer = $map->getLayerByName('europe cities');
 	$this_layer->set('status', MS_ON);
    
 
 }
 
 else {
 	$cities = "";
 	$this_layer = $map->getLayerByName('europe cities');
 	$this_layer->set('status', MS_OFF);
 }

what i wanna know is..i have down drop list.. i do a click and i have manu
with all countries..if i made a select and i the menu a country ..how could
i change the data in the mafile? i mean 
data "the_geom from table where name=greece" in a way like the above i wrote
...??


thanks

-- 
View this message in context: http://www.nabble.com/php-database-mapfile-tp16519414p16519414.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the mapserver-users mailing list