Ignore:
Timestamp:
Apr 20, 2019, 8:32:48 PM (6 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

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

    r274 r279  
    259259     
    260260 
    261         $sql="select * from ".$prefix."_$tab where id_cons='$id_cons' group by id_sez ";
     261        $sql="select id_cons from ".$prefix."_$tab where id_cons='$id_cons' group by id_sez ";
    262262        $res = $dbi->prepare("$sql");
    263263        $res->execute();
    264264
    265265       
    266         if ($res) $numero=$res->rowCount();else $numero=0;
     266        $numero=$res->rowCount();
    267267        $sql="select t2.*  from ".$prefix."_ele_sezioni as t2, ".$prefix."_ele_sede as t1 where t2.id_cons='$id_cons' and t1.id_sede=t2.id_sede $circondt1";
    268268        $res = $dbi->prepare("$sql");
Note: See TracChangeset for help on using the changeset viewer.