Changeset 273 for trunk/client/modules/Elezioni/blocchi/bar_affluenze.php
- Timestamp:
- Apr 20, 2019, 12:28:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/blocchi/bar_affluenze.php
r265 r273 21 21 $sezioni=$res2->fetch(PDO::FETCH_NUM); 22 22 23 $sql="select orario,data from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order by data desc,orario desc limit 1" , $dbi);23 $sql="select orario,data from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order by data desc,orario desc limit 1"; 24 24 $res = $dbi->prepare("$sql"); 25 25 $res->execute(); 26 if($res ){26 if($res->rowCount()){ 27 27 28 28 while(list($orario,$data) = $res->fetch(PDO::FETCH_NUM)) { … … 50 50 else 51 51 $sql="select sum(t3.voti_complessivi),0,0 from ".$prefix."_ele_voti_parziale as t3 left join ".$prefix."_ele_sezioni as t1 on t3.id_sez=t1.id_sez left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' $circos"; 52 $res l= $dbi->prepare("$sql");53 $res l->execute();52 $res1 = $dbi->prepare("$sql"); 53 $res1->execute(); 54 54 55 55 #fine modifica
Note:
See TracChangeset
for help on using the changeset viewer.