the above is from using your modified code:
Code:
// Top 10 Thread Replys
// Top 1 Most Popular Thread
$pop1 = $DB_site->query('SELECT title,threadid,views FROM thread ORDER BY views DESC LIMIT 1');
while ($pop1top = mysql_fetch_array($pop1)):
++$pop1topnbsp;
$pop1title .= "<a href=showthread.php?s=$session[sessionhash]&goto=lastpost&threadid=$pop1top[threadid]>$pop1top[title]</a>"; $pop1views .= "$pop1top[views]";