Changeset 324 for trunk/client/modules/Elezioni
- Timestamp:
- Jun 20, 2019, 10:20:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/index.php
r318 r324 1050 1050 } 1051 1051 // numero sezioni scrutinate, escluse circorscrizioni (da aggiungere) 1052 if ($circo!=1){ 1052 if ($circo!=1){$sqlcir="";}else{$sqlcir="and id_circ='$id_circ'"; } 1053 1053 if ($votog) {$tab="lista";}else{$tab="candidati";} 1054 $sql="select id_sez from ".$prefix."_ele_voti_".$tab." where id_cons='$id_cons' group by id_sez ";1054 $sql="select id_sez from ".$prefix."_ele_voti_".$tab." where id_cons='$id_cons' $sqlcir group by id_sez "; 1055 1055 $res1 = $dbi->prepare("$sql"); 1056 1056 $res1->execute(); 1057 1057 1058 1058 $numero=$res1->rowCount(); 1059 $sql="select max(num_sez) from ".$prefix."_ele_sezioni where id_cons='$id_cons' ";1059 $sql="select max(num_sez) from ".$prefix."_ele_sezioni where id_cons='$id_cons' $sqlcir"; 1060 1060 $res2 = $dbi->prepare("$sql"); 1061 1061 $res2->execute(); 1062 1062 1063 1063 list($sezioni)=$res2->fetch(PDO::FETCH_NUM); 1064 }1065 1064 1065 1066 1066 1067 1067
Note:
See TracChangeset
for help on using the changeset viewer.