Changeset 273 for trunk/client/modules/Elezioni/blocchi/off_Votanti.php
- Timestamp:
- Apr 20, 2019, 12:28:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/blocchi/off_Votanti.php
r265 r273 43 43 44 44 $sql="SELECT sum(t1.maschi+t1.femmine) FROM ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' $circos"; 45 $res l= $dbi->prepare("$sql");46 $res l->execute();45 $res1 = $dbi->prepare("$sql"); 46 $res1->execute(); 47 47 48 48 list($tot_aventi) = $res1->fetch(PDO::FETCH_NUM); … … 52 52 sum(t1.validi),sum(t1.nulli),sum(t1.bianchi),sum(t1.contestati), '0' 53 53 from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons=$id_cons $circos having tot>0"; 54 $res l= $dbi->prepare("$sql");55 $res l->execute();54 $res1 = $dbi->prepare("$sql"); 55 $res1->execute(); 56 56 57 57 }else{ … … 59 59 sum(validi),sum(nulli),sum(bianchi),sum(contestati), id_gruppo 60 60 from ".$prefix."_ele_voti_ref where id_cons=$id_cons group by id_gruppo having tot>0"; 61 $res l= $dbi->prepare("$sql");62 $res l->execute();61 $res1 = $dbi->prepare("$sql"); 62 $res1->execute(); 63 63 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.