$pg and vis=1 and pad=$idx and dt<=now() order by ord desc limit 1"); if ($row=mysql_fetch_array($result)){ $pg=$row[ID]; }else{ $pg=0; } } if (isset($stqry)==false) { $stqry=0; } if (isset($stq)==false) { $stq=20; } ?> <? echo $titsito?>

1) { ?> =5) { $maxp=5; }else{ $maxp=$totpg; } }else{ if (($actpg+2)<=$totpg) { $maxp=$actpg+2; }else{ $maxp=$totpg; if (($maxp==$totpg) && (($minp-2)>1)) { $minp=$totpg-2; } } } if ($actpg!=1){ echo " << PREV "; } for ($x=$minp;$x<=$maxp;$x++){ if ($x==$actpg) { echo " " . $x . " "; }else{ echo " " . $x ." "; } } if ($actpg!=$totpg){ echo " NEXT >> "; }?>

0){ $a=1; ?>
    Articolo