svn commit: r299 - trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php

uli at osgeo.org uli at osgeo.org
Tue May 16 03:47:37 EDT 2006


Author: uli
Date: 2006-05-16 07:47:37+0000
New Revision: 299

Modified:
   trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php

Log:
db_preb_query included

Modified: trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php?view=diff&rev=299&p1=trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php&p2=trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php&r1=298&r2=299
==============================================================================
--- trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php	(original)
+++ trunk/mapbender/http/php/mod_addWmsFromFeatureInfo.php	2006-05-16 07:47:37+0000
@@ -27,8 +27,10 @@
 $e_id_css = 'addWmsFromFeatureInfo';
 include('../include/dyn_js.php');
 
-$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = '" . $e_id_css . "' AND fkey_gui_id = '".$gui_id."'";
-$res = db_query($sql);
+$sql = "SELECT e_src, e_target FROM gui_element WHERE e_id = $1 AND fkey_gui_id = $2 ";
+$v = array($e_id_css,$gui_id);
+$t = array('s','s');
+$res = db_prep_query($sql,$v,$t);
 $cnt = 0;
 while($row = db_fetch_array($res)){ 
 	$e_src = $row["e_src"];




More information about the Mapbender_commits mailing list