Ignore:
Timestamp:
Apr 20, 2019, 12:28:24 AM (6 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/blocchi/off_Votanti.php

    r265 r273  
    4343
    4444        $sql="SELECT sum(t1.maschi+t1.femmine) 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";
    45         $resl = $dbi->prepare("$sql");
    46         $resl->execute();
     45        $res1 = $dbi->prepare("$sql");
     46        $res1->execute();
    4747
    4848        list($tot_aventi)  = $res1->fetch(PDO::FETCH_NUM);
     
    5252                sum(t1.validi),sum(t1.nulli),sum(t1.bianchi),sum(t1.contestati), '0'
    5353                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 having tot>0";
    54         $resl = $dbi->prepare("$sql");
    55         $resl->execute();
     54        $res1 = $dbi->prepare("$sql");
     55        $res1->execute();
    5656
    5757        }else{
     
    5959                sum(validi),sum(nulli),sum(bianchi),sum(contestati), id_gruppo
    6060                from ".$prefix."_ele_voti_ref  where id_cons=$id_cons group by id_gruppo having tot>0";
    61         $resl = $dbi->prepare("$sql");
    62         $resl->execute();
     61        $res1 = $dbi->prepare("$sql");
     62        $res1->execute();
    6363
    6464        }
Note: See TracChangeset for help on using the changeset viewer.