Ignore:
Timestamp:
Feb 9, 2019, 8:45:24 PM (6 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/scarica.php

    r80 r257  
    1313}
    1414
    15 
     15global $dbi;
    1616$aid=$_SESSION['aid'];
    17 $dbi=$_SESSION['dbi'];
    1817$prefix=$_SESSION['prefix'];
    1918$currentlang=$_SESSION['lang'];
     
    7170        }elseif($fase=='2'){
    7271
    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();
     75list($descrcons) = $res->fetch(PDO::FETCH_NUM);
    7576$rem_cons="<script type=\"text/javascript\" src=\"$indirizzoweb/file.php?fase=2&id_cons_gen2=$id_cons_gen2\"></script>";
    7677
     
    7980        echo "<td><b>"._INDIRIZZOWEB1."</b></td>";
    8081        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)]);
    8283echo "<tr><td><b>"._CONSULTA.":</b></td><td>$cons_rem</td></tr>";
    8384        echo "<tr><td><b>"._SCELTACOMUNE."</b></td><td>$rem_cons</td></tr>";
Note: See TracChangeset for help on using the changeset viewer.