Changeset 337 for trunk/client/modules/Elezioni/affluenze.php
- Timestamp:
- Oct 15, 2020, 5:40:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/affluenze.php
r265 r337 167 167 # while (list($appo) = mysql_fetch_array($res)) {$i=$appo['num_sez']; $linka[$i] = $appo;echo "\nnum:$i:".$linka[$i]['num_sez'];}die(); 168 168 $num_sez = $res->rowCount(); //numero totale delle sezioni 169 $sez_da=$linka[1]['num_sez'];169 if (isset($linka[1]['num_sez'])) $sez_da=$linka[1]['num_sez']; else $sez_da=0; 170 170 $sez_a=$sez_da+$num_sez-1; 171 171 $tot_compl=0;$tot_u=0;$tot_d=0; … … 179 179 for ($i=$sez_da;$i<=$sez_a;$i++,$y++) { 180 180 # $ar[$i]['numsez']=$i; 181 if(!isset($linka[$y]['num_sez'])) { $linka[$y]['num_sez']=0; $linka[$y]['elettori']=0;} 181 182 $z=$linka[$y]['num_sez']; 182 183 $ar[$z]['numsez']=$linka[$y]['num_sez'];
Note:
See TracChangeset
for help on using the changeset viewer.