View file fnewts.php
<?php include 'inc/db.php'; include 'inc/1.php'; msg("Новые темы"); $last=mysql_query("SELECT * FROM `forum` ORDER BY `time` DESC LIMIT 15"); $b=1; while ($f=mysql_fetch_assoc($last)){ $p=($b%2); echo "<div class='p$p'><a href='theme.php?id=$f[id]'>".htmlspecialchars($f['name'])."</a></div>"; $b++; } msg("<a href='forum.php'>Форум</a>"); include_once 'inc/foot.php'; ?>