Changeset 278 for trunk/client/modules/Elezioni/blocchi/off_Votanti.php
- Timestamp:
- Apr 20, 2019, 8:04:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/blocchi/off_Votanti.php
r273 r278 22 22 # $numero=mysql_num_rows($res); 23 23 # $res = mysql_query("select * from ".$prefix."_ele_sezioni where id_cons='$id_cons'",$dbi); 24 $sql="select t3. *from ".$prefix."_ele_voti_".$tab." 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' $circos group by t3.id_sez ";24 $sql="select t3.id_sez from ".$prefix."_ele_voti_".$tab." 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' $circos group by t3.id_sez "; 25 25 $res = $dbi->prepare("$sql"); 26 26 $res->execute();
Note:
See TracChangeset
for help on using the changeset viewer.