well... I did found that you could use this querie to get the info needed:
[sql]
$sql = 'SELECT threadid, title, forumid, replycount, postusername, postuserid, lastposter, dateline, iconid FROM thread WHERE forumid =2 ORDER BY threadid DESC LIMIT 5';
[/sql]
but what did I need to put as require to connect to the database without much work and the code to show it as HTML.
|