Changeset 257 for trunk/admin/modules/Elezioni/scarica.php
- Timestamp:
- Feb 9, 2019, 8:45:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/scarica.php
r80 r257 13 13 } 14 14 15 15 global $dbi; 16 16 $aid=$_SESSION['aid']; 17 $dbi=$_SESSION['dbi'];18 17 $prefix=$_SESSION['prefix']; 19 18 $currentlang=$_SESSION['lang']; … … 71 70 }elseif($fase=='2'){ 72 71 73 $res = mysql_query("SELECT descrizione from ".$prefix."_ele_consultazione WHERE id_cons_gen=$id_cons_gen2",$dbi); 74 list($descrcons) = mysql_fetch_row($res); 72 $sql="SELECT descrizione from ".$prefix."_ele_consultazione WHERE id_cons_gen=$id_cons_gen2"; 73 $res = $dbi->prepare("$sql"); 74 $res->execute(); 75 list($descrcons) = $res->fetch(PDO::FETCH_NUM); 75 76 $rem_cons="<script type=\"text/javascript\" src=\"$indirizzoweb/file.php?fase=2&id_cons_gen2=$id_cons_gen2\"></script>"; 76 77 … … 79 80 echo "<td><b>"._INDIRIZZOWEB1."</b></td>"; 80 81 echo "<td><input type=\"hidden\" name=\"id_cons_gen\" value=\"$id_cons_gen\"><input type=\"hidden\" name=\"op\" value=\"scarica\"><input type=\"hidden\" name=\"fase\" value=\"3\"><input type=\"hidden\" name=\"indirizzoweb\" value=\"$indirizzoweb\">$indirizzoweb</td></td></tr>"; 81 $cons_rem= $_GET[($id_cons_gen2)];82 $cons_rem=intval($_GET[($id_cons_gen2)]); 82 83 echo "<tr><td><b>"._CONSULTA.":</b></td><td>$cons_rem</td></tr>"; 83 84 echo "<tr><td><b>"._SCELTACOMUNE."</b></td><td>$rem_cons</td></tr>";
Note:
See TracChangeset
for help on using the changeset viewer.