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/bar_affluenze.php

    r265 r273  
    2121                $sezioni=$res2->fetch(PDO::FETCH_NUM);
    2222
    23     $sql="select orario,data  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order  by data desc,orario desc limit 1", $dbi);
     23    $sql="select orario,data  from ".$prefix."_ele_voti_parziale where id_cons='$id_cons' order  by data desc,orario desc limit 1";
    2424        $res = $dbi->prepare("$sql");
    2525        $res->execute();
    26  if($res){
     26 if($res->rowCount()){
    2727
    2828        while(list($orario,$data) = $res->fetch(PDO::FETCH_NUM)) {
     
    5050else
    5151        $sql="select sum(t3.voti_complessivi),0,0  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 t3.id_cons='$id_cons' and t3.data='$data' and t3.orario='$orario' $circos";
    52 $resl = $dbi->prepare("$sql");
    53 $resl->execute();
     52$res1 = $dbi->prepare("$sql");
     53$res1->execute();
    5454
    5555#fine modifica
Note: See TracChangeset for help on using the changeset viewer.