Ignore:
Timestamp:
May 26, 2011, 9:42:24 AM (14 years ago)
Author:
roby
Message:
  • sistemata visualizzazione affluenze per multireferendum
  • sistemato caricamento blocchi laterali
File:
1 edited

Legend:

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

    r78 r101  
    403403        if($pos=="dx") $p=0; elseif($pos=="sx")$p=1;else $p='';
    404404       
    405         $result = mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);
    406         if($result){
    407                 while ($row = mysql_fetch_array($result)) {
     405        $resblk = mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);
     406        if($resblk){
     407                while ($row = mysql_fetch_array($resblk)) {
    408408                $nome=$row['nome_file'];
    409409                include ("modules/Elezioni/blocchi/$nome");
     
    417417if($pos=="dx") $p=0; elseif($pos=="sx")$p=1;else $p='';
    418418       
    419         $result = mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);
    420         if ($result) $numero=mysql_num_rows($result);else $numero=0;   
     419        $reschk = mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);
     420        if ($reschk) $numero=mysql_num_rows($reschk);else $numero=0;   
    421421
    422422                return  $numero;
Note: See TracChangeset for help on using the changeset viewer.