Changeset 263 for trunk/admin/modules/Elezioni
- Timestamp:
- Apr 7, 2019, 5:28:53 PM (6 years ago)
- Location:
- trunk/admin/modules/Elezioni
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_colora_sez.php
r262 r263 15 15 $res->execute(); 16 16 }else{ #candidati 17 $sql="SELECT t2.id_listaFROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez' group by t2.id_lista";17 $sql="SELECT count(t2.id_lista) FROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez' group by t2.id_lista"; 18 18 $res = $dbi->prepare("$sql"); 19 19 $res->execute(); 20 $liste=$res->rowCount();20 list($liste)=$res->fetch(PDO::FETCH_NUM); 21 21 22 22 $sql="SELECT count(id_lista) FROM ".$prefix."_ele_lista where id_cons='$id_cons'";
Note:
See TracChangeset
for help on using the changeset viewer.