Changeset 101 for trunk/client/modules/Elezioni/funzioni.php
- Timestamp:
- May 26, 2011, 9:42:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/funzioni.php
r78 r101 403 403 if($pos=="dx") $p=0; elseif($pos=="sx")$p=1;else $p=''; 404 404 405 $res ult= mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);406 if($res ult){407 while ($row = mysql_fetch_array($res ult)) {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)) { 408 408 $nome=$row['nome_file']; 409 409 include ("modules/Elezioni/blocchi/$nome"); … … 417 417 if($pos=="dx") $p=0; elseif($pos=="sx")$p=1;else $p=''; 418 418 419 $res ult= mysql_query("SELECT * FROM ".$prefix."_ele_widget where pos_or='$p' and attivo='1' order by pos_ver asc", $dbi);420 if ($res ult) $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; 421 421 422 422 return $numero;
Note:
See TracChangeset
for help on using the changeset viewer.