Re: forum posts
ok ive probably gone about this all wrong but am i anywhere near when i use this code
<?php
/**
* @author Blackdogg
* @copyright 2009
*/
include "globals.php";
switch($_GET['action'])
{
case "forum":
forum();
break;
}
function forum()
{
global $db,$ir,$c,$userid, $myf;
print "Showing the last 10 forum posts
<table width=75% cellspacing=1 class='table'><tr style='background:gray'>
select topic from forum_topics order by last_post_date desc limit 10
";
}
print "</table>";
?>
ive put a link onto the homepage to take you to a new page (code above)
Be gentle with me im still learning :p