Changeset 263 for trunk/admin


Ignore:
Timestamp:
Apr 7, 2019, 5:28:53 PM (6 years ago)
Author:
roby
Message:
 
Location:
trunk/admin/modules/Elezioni
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_colora_sez.php

    r262 r263  
    1515        $res->execute();       
    1616        }else{ #candidati
    17         $sql="SELECT t2.id_lista FROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez' group by t2.id_lista";
     17        $sql="SELECT count(t2.id_lista) FROM ".$prefix."_ele_voti_candidati as t1 left join ".$prefix."_ele_candidati as t2 on t1.id_cand=t2.id_cand where t1.id_cons='$id_cons' and t1.id_sez='$id_sez' group by t2.id_lista";
    1818        $res = $dbi->prepare("$sql");
    1919        $res->execute();
    20         $liste=$res->rowCount();
     20        list($liste)=$res->fetch(PDO::FETCH_NUM);
    2121       
    2222        $sql="SELECT count(id_lista) FROM ".$prefix."_ele_lista where id_cons='$id_cons'";
Note: See TracChangeset for help on using the changeset viewer.