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

Legend:

Unmodified
Added
Removed
  • trunk/admin/temi/altro/index.php

    r2 r257  
    1313global $nometema,$id_comune,$id_cons_gen,$aid,$dbi,$prefix;
    1414$nometema=$tema;
    15 $res_com = mysql_query("SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune'",$dbi);
    16 $res_cons = mysql_query("SELECT descrizione FROM ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'",$dbi);
    17 list($descr_comune) = mysql_fetch_row($res_com);
    18 list($descr_consultazione) = mysql_fetch_row($res_cons);
     15$res_com = "SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune'";
     16$sth = $dbi->prepare("$sql");
     17$sth->execute();       
     18list($descr_comune) = $sth->fetch(PDO::FETCH_NUM);
     19$sql="SELECT descrizione FROM ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen'";
     20$sth = $dbi->prepare("$sql");
     21$sth->execute();       
     22list($descr_consultazione) = $sth->fetch(PDO::FETCH_NUM);
    1923
    2024echo "<div class=\"container\"><table width=\"95%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table-main\">
Note: See TracChangeset for help on using the changeset viewer.