Changeset 30 for trunk/client/modules/Elezioni/grafici.php
- Timestamp:
- Mar 17, 2010, 8:11:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/grafici.php
r21 r30 67 67 // numero sezioni scrutinate 68 68 //if ($circo)$circos="and id_circ='$id_circ'"; 69 if (!isset($data1)) $data1=''; 70 if (!isset($ora_ril)) $ora_ril=''; 69 71 $res1 = mysql_query("SELECT count(data) FROM ".$prefix."_ele_voti_parziale 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 t1.id_cons='$id_cons' and data='$data1' and orario='$ora_ril' $circos group by t3.id_gruppo", $dbi); 70 72 # mysql_query("select * from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' $circos group by id_sez ",$dbi); … … 217 219 */ 218 220 $res = mysql_query("select t1.* from ".$prefix."_ele_voti_".$tab." as t1 left join ".$prefix."_ele_$tab as t2 on t1.id_gruppo=t2.id_gruppo where t1.id_cons='$id_cons' $circos group by t1.id_sez ",$dbi); 219 $numero=mysql_num_rows($res); 221 if($res) 222 $numero=mysql_num_rows($res); 223 else 224 $numero=0; 220 225 $res = mysql_query("select t1.* from ".$prefix."_ele_sezioni as t1 left join ".$prefix."_ele_sede as t2 on t1.id_sede=t2.id_sede where t1.id_cons='$id_cons' $circos",$dbi); 221 226 $sezioni=mysql_num_rows($res);
Note:
See TracChangeset
for help on using the changeset viewer.