PHP Code:
// Setting up Database Connect
$Host = "localhost";
$User = "user name here";
$Password = "password here";
$DBName = "vb database name here";
// Collecting Post Info
$Link = mysql_connect ($Host, $User, $Password);
$Query = "SELECT * FROM post WHERE postid != 0 ORDER BY postid DESC LIMIT 5";
$Result = mysql_db_query ($DBName, $Query, $Link);
while ($row = mysql_fetch_array($Result)) {
$userid = $row[userid]; $username= $row[username]; $postid=$row[postid]; $title=$row[title];
$latestpostlist.= "<a href='../showthread.php?s=$session[sessionhash]&postid=$postid#post$postid'>$title</a> <b>By: <a href='..member.php?s=$session[sessionhash]&action=getinfo&userid=$userid'>$username</a></b><br>";
}
mysql_close ($Link);
try this code BicyclePunk

regards... the urls might have to be adjusted to your sites needs... hope this works
g-force2k2