PHP Code:
// dates for subs
$hiddenforum=$DB_site->query_first("SELECT lastpost FROM forum WHERE forumid=1 OR forumid=2 ORDER BY lastpost DESC LIMIT 1");
if ($hiddenforum['lastpost']>0) {
$hiddenforum['lastpostdate']=vbdate($dateformat,$hiddenforum['lastpost']);
$hiddenforum['lastposttime']=vbdate($timeformat,$hiddenforum['lastpost']);
} else {
$hiddenforum['lastpostdate']='Never';
$hiddenforum['lastposttime']='';
}
I think that should work. (replace the forumids of course)
Use $hiddenforum[lastpostdate] and $hiddenforum[lastposttime].