Changeset 168 for trunk/client/modules/Elezioni
- Timestamp:
- Feb 11, 2013, 5:57:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/blocchi/01_votanti.php
r138 r168 47 47 # calcolo sezioni 48 48 $res_sez = mysql_query("select count(0) from ".$prefix."_ele_voti_".$tab." where id_cons='$id_cons' and id_gruppo='$id'", $dbi); 49 list($numero)=mysql_fetch_row($res_sez); 49 if($res_sez) 50 list($numero)=mysql_fetch_row($res_sez); 51 else 52 $numero=0; 50 53 $res_sez = mysql_query("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 51 54 ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t3.id_cons='$id_cons' $circos group by t3.id_sez ",$dbi);
Note:
See TracChangeset
for help on using the changeset viewer.