[pmapper-users] Make_new_custom_query_way_by_form
Brought to you by:
arminburger
From: Leonardo A. <leo...@gm...> - 2007-07-26 20:48:29
|
hello list..! im using the last stable version of pmapper 3.1. in this moment i can enable the file.map.. and i define the group layers in php_config.php conected to mapserver and postgis.. whith out problem. Now.. Im looking for the way... for make a custom query ... for change the results of the icon selection, in the toolbar... or way by form. I can see, that exist the file search.xml for make a query... but this way is limited... or no there are examples for use SQl string in this..search.xml.. however.. in the file ../incphp/query/search.php .. seems that is posible. i want use the way by .. php_mapscript functions.. for example.. 1. get parameters by form 2. insert parameters in a SQl string = $Query_data 3. make query somethig like this... $layer = ms_newLayerObj($map); $layer->set("name", "Landsat"); $layer->set("data", "$Query_data"); BUT ... i dont can see... where put this lines... or understand how is the workflow to do this inside pmapper... what files or funtions modify... PLEASE ANY IDEA..?? THANKS ! -- Leonardo Araque Electronic Engineer |