function IBFLatestTopic($num)
{
global $INFO;
// ----------
// Get the config file
// Change this include statement to reflect the absolute path
// ----------
if (!isset( $INFO)) include '/www/virtual/mysite/htdocs/conf_global.php';
$bullets = '<ol>'; // numbered list
//$bullets = '<ul>'; // bullets
// ----------
// Connect to database
// ----------
$connect = mysql_connect($INFO['sql_host'], $INFO['sql_user'], $INFO['sql_pass']) or die("Could Not Connect To <b>\"$host\"</b>");
$select = mysql_select_db($INFO['sql_database'], $connect) or die("Could Not Select Database: <b>\"$db_name\"</b>");
$query = mysql_query("SELECT * FROM `{$INFO['sql_tbl_prefix']}topics` ORDER BY `tid` DESC LIMIT 0, $num")
or die("Could Not Execute The Query");
// ----------
// Running A Loop
// ----------
$output = $bullets;
while( $ibf = mysql_fetch_array($query))
{
$date_posted = date("F j Y, H:i A", $ibf[start_date]); // Date of topic posted
$last_posted = date("F j Y, H:i A", $ibf[last_post]); // Date of last post