svn commit: r114 - trunk/mapbender/http/javascripts/mod_dependentDiv.php

arnulf at osgeo.org arnulf at osgeo.org
Wed Apr 19 19:01:40 EDT 2006


Author: arnulf
Date: 2006-04-19 23:01:40+0000
New Revision: 114

Modified:
   trunk/mapbender/http/javascripts/mod_dependentDiv.php   (contents, props changed)

Log:
codde cleaned, added prepared statement

Modified: trunk/mapbender/http/javascripts/mod_dependentDiv.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/javascripts/mod_dependentDiv.php?view=diff&rev=114&p1=trunk/mapbender/http/javascripts/mod_dependentDiv.php&p2=trunk/mapbender/http/javascripts/mod_dependentDiv.php&r1=113&r2=114
==============================================================================
--- trunk/mapbender/http/javascripts/mod_dependentDiv.php	(original)
+++ trunk/mapbender/http/javascripts/mod_dependentDiv.php	2006-04-19 23:01:40+0000
@@ -1,6 +1,6 @@
 <?php
-#$Id: mod_dependentDiv.php,v 1.8 2005/09/13 18:16:42 bjoern_heuser Exp $
-#$Header: /cvsroot/mapbender/mapbender/http/javascripts/mod_dependentDiv.php,v 1.8 2005/09/13 18:16:42 bjoern_heuser Exp $
+# $Id$
+# http://www.mapbender.org/index.php/DependentDiv
 # Copyright (C) 2002 CCGIS 
 #
 # This program is free software; you can redistribute it and/or modify
@@ -23,10 +23,12 @@
 
 $con = db_connect($DBSERVER,$OWNER,$PW);
 db_select_db(DB,$con);
-$sql = "SELECT e_target FROM gui_element WHERE e_id = 'dependentDiv' AND fkey_gui_id = '".$gui_id."'";
-$res = db_query($sql);
+$sql = "SELECT e_target FROM gui_element WHERE e_id = 'dependentDiv' AND fkey_gui_id = $1 ";
+$v = array($gui_id);
+$t = array('s');
+$res = db_prep_query($sql, $v, $t);
 $cnt = 0;
-while($row = db_fetch_array($res)){ 
+while($row = db_fetch_array($res)){
 	$e_target =$row["e_target"];
 	$cnt++;
 }




More information about the Mapbender_commits mailing list