Ignore:
Timestamp:
Mar 17, 2010, 8:11:46 PM (15 years ago)
Author:
roby
Message:

Eliminati ulteriori messaggi notice di php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/grafici.php

    r21 r30  
    6767                // numero sezioni scrutinate
    6868                //if ($circo)$circos="and id_circ='$id_circ'";
     69        if (!isset($data1)) $data1='';
     70        if (!isset($ora_ril)) $ora_ril='';
    6971                $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);
    7072# mysql_query("select *  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' $circos  group by id_sez ",$dbi);
     
    217219         */
    218220        $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;
    220225        $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);
    221226        $sezioni=mysql_num_rows($res);
Note: See TracChangeset for help on using the changeset viewer.