<? if (!$id) { $res = mysql_query("Select * from `news`"); $pgc = mysql_numrows($res); $pgc = ceil($pgc/$config['news_list']['value']); echo "<center>"; if ($pg>0) { echo " <a href='index.php?pg=".($pg-1)."'> << back </a>"; } echo ".:[".($pg+1)."]:."; if ($pg<$pgc-1) { echo "<a href='index.php?pg=".($pg+1)."'> next >> </a> "; } echo "</center>"; } ?>