Changeset 318 for trunk/client/modules/Elezioni/funzioni.php
- Timestamp:
- Jun 2, 2019, 10:04:20 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/funzioni.php
r279 r318 259 259 260 260 261 $sql="select id_ consfrom ".$prefix."_$tab where id_cons='$id_cons' group by id_sez ";261 $sql="select id_sez from ".$prefix."_$tab where id_cons='$id_cons' group by id_sez "; 262 262 $res = $dbi->prepare("$sql"); 263 263 $res->execute(); … … 288 288 and t2.id_lista=t3.id_lista 289 289 and t1.id_gruppo=t3.id_gruppo 290 group by t1.id_gruppo 290 group by t1.id_gruppo, t1.num_gruppo, t1.descrizione 291 291 order by somma desc"; 292 292 }else{ … … 295 295 left join ".$prefix."_ele_voti_gruppo as t2 on (t1.id_gruppo=t2.id_gruppo) 296 296 where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons $circondt1 297 group by t 2.id_gruppo297 group by t1.id_gruppo, t1.num_gruppo, t1.descrizione 298 298 order by somma desc"; 299 299 } … … 303 303 left join ".$prefix."_$tab as t2 on (t1.id_lista=t2.id_lista) 304 304 where t1.id_cons='$id_cons' and t1.id_cons=t2.id_cons 305 group by t 2.id_lista305 group by t1.id_lista, t1.num_lista, t1.descrizione 306 306 order by somma desc"; 307 307 }
Note:
See TracChangeset
for help on using the changeset viewer.