Ive had a go at what you suggested and came up with this, quick test code.
<?php
include($_SERVER['DOCUMENT_ROOT'].'/includes/dbconnect.php');
$sql = mysql_query("SELECT p.time, u.username FROM users u, forum_posts p WHERE u.username=p.username");
mysql_result($sql,0);
echo $time;
?>
Im new to this stuff in MySQL so the above code is probably wrong. The problem is nothing is been echoed into the page.
I must admit i dont know how to acutally get the results correctly
Thanks