Changeset 273 for trunk/client/modules/Elezioni/blocchi/01_votanti.php
- Timestamp:
- Apr 20, 2019, 12:28:24 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/blocchi/01_votanti.php
r265 r273 45 45 46 46 list($tot_aventi) = $res->fetch(PDO::FETCH_NUM); 47 $sql ?"SELECT sum(validi+nulli+bianchi+contestati) as tot,47 $sql="SELECT sum(validi+nulli+bianchi+contestati) as tot, 48 48 sum(validi),sum(nulli),sum(bianchi),sum(contestati), id_gruppo, sum(si), sum(no) 49 49 from ".$prefix."_ele_voti_ref where id_cons=$id_cons group by id_gruppo having tot>'0'"; … … 62 62 63 63 else $sql="select count(0) from ".$prefix."_ele_sezioni where id_cons='$id_cons' and validi+nulli+bianchi+contestati>0"; 64 $res = $dbi->prepare("$sql");65 $res ->execute();64 $res_sez = $dbi->prepare("$sql"); 65 $res_sez->execute(); 66 66 67 if($res_sez )67 if($res_sez->rowCount()) 68 68 list($numero)=$res_sez->fetch(PDO::FETCH_NUM); 69 69 else
Note:
See TracChangeset
for help on using the changeset viewer.