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

Legend:

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

    r265 r273  
    4545
    4646        list($tot_aventi)  = $res->fetch(PDO::FETCH_NUM);
    47                 $sql?"SELECT  sum(validi+nulli+bianchi+contestati) as tot,
     47                $sql="SELECT  sum(validi+nulli+bianchi+contestati) as tot,
    4848                sum(validi),sum(nulli),sum(bianchi),sum(contestati), id_gruppo, sum(si), sum(no)
    4949                from ".$prefix."_ele_voti_ref  where id_cons=$id_cons group by id_gruppo having tot>'0'";
     
    6262
    6363else $sql="select count(0) from ".$prefix."_ele_sezioni where id_cons='$id_cons' and validi+nulli+bianchi+contestati>0";
    64 $res = $dbi->prepare("$sql");
    65 $res->execute();
     64$res_sez = $dbi->prepare("$sql");
     65$res_sez->execute();
    6666
    67 if($res_sez)
     67if($res_sez->rowCount())
    6868        list($numero)=$res_sez->fetch(PDO::FETCH_NUM);
    6969else
Note: See TracChangeset for help on using the changeset viewer.