svn commit: r317 - trunk/mapbender/http/php/mod_changeEPSG.php

uli at osgeo.org uli at osgeo.org
Tue May 16 08:49:44 EDT 2006


Author: uli
Date: 2006-05-16 12:49:44+0000
New Revision: 317

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

Log:
db_prep_query partial included

Modified: trunk/mapbender/http/php/mod_changeEPSG.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_changeEPSG.php?view=diff&rev=317&p1=trunk/mapbender/http/php/mod_changeEPSG.php&p2=trunk/mapbender/http/php/mod_changeEPSG.php&r1=316&r2=317
==============================================================================
--- trunk/mapbender/http/php/mod_changeEPSG.php	(original)
+++ trunk/mapbender/http/php/mod_changeEPSG.php	2006-05-16 12:49:44+0000
@@ -49,8 +49,10 @@
 -->
 </style>
 <?php
-$sql = "SELECT e_target FROM gui_element WHERE e_id = 'changeEPSG' AND fkey_gui_id = '".$gui_id."'";
-$res = db_query($sql);
+$sql = "SELECT e_target FROM gui_element WHERE e_id = 'changeEPSG' AND fkey_gui_id = $1";
+$v = array($gui_id);
+$t = array('s');
+$res = db_prep_query($sql,$v,$t);
 
 echo "<script type='text/javascript'>";
 echo "var myTarget = '".db_result($res,0,"e_target")."';";




More information about the Mapbender_commits mailing list