<?php error_reporting(7); require('./global.php'); $latestthread=$DB_site->query_first("SELECT title,threadid,dateline FROM thread ORDER BY dateline DESC LIMIT 20"); echo ("Latest 20 threads: <br /> <a href=\"showthread.php?s=$session[sessionhash]&threadid=$latestthread[threadid]\">$latestthread[title]</a>"); ?>