Changeset 257 for trunk/admin/modules/Elezioni/funzionidata.php
- Timestamp:
- Feb 9, 2019, 8:45:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/funzionidata.php
r254 r257 95 95 global $prefix,$dbi,$id_cons,$limite,$id_comune,$ops; 96 96 $sqlcomu="select fascia from ".$prefix."_ele_comuni where id_comune='$id_comune'"; 97 $res = mysql_query($sqlcomu); 98 list($fascia)=mysql_fetch_row($res); 97 $res = $dbi->prepare("$sqlcomu"); 98 $res->execute(); 99 list($fascia)=$res->fetch(PDO::FETCH_NUM); 99 100 #voti di lista e di gruppo completamente disgiunti 100 $result = mysql_query("select infdisgiunto, supdisgiunto from ".$prefix."_ele_conf as t2 left join ".$prefix."_ele_cons_comune as t1 on t1.id_conf=t2.id_conf where id_cons = '$id_cons' ", $dbi); 101 $sql="select infdisgiunto, supdisgiunto from ".$prefix."_ele_conf as t2 left join ".$prefix."_ele_cons_comune as t1 on t1.id_conf=t2.id_conf where id_cons = '$id_cons' "; 102 $result = $dbi->prepare("$sql"); 103 $result->execute(); 101 104 $glsep=''; 102 if ($result ) {103 list($infdis,$supdis)= mysql_fetch_row($result);105 if ($result->rowCount()) { 106 list($infdis,$supdis)=$result->fetch(PDO::FETCH_NUM); 104 107 if((($fascia>$limite and $supdis) or ($fascia<=$limite and $infdis))) 105 108 $glsep='_lista';
Note:
See TracChangeset
for help on using the changeset viewer.