NodeWest-Dan
New Member
I am implementing an announcements list in my sites footer which uses WHCMS' announcements page and the code they have on their website. I can't for the life of me figure out how to make the titles into URLS. Would anyone know how to modify the code? There is no URL section inside the tblannouncements.
Code:
<?php
include("support/dbconnect.php");
include("support/includes/functions.php");
$query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3";
$result = mysql_query($query);
while ($data = mysql_fetch_array($result)) {
$id = $data["id"];
$date = $data["date"];
$title = $data["title"];
$announcement = $data["announcement"];
$date = fromMySQLDate($date);
echo '<p><font color="#cccccc">'.$date.'</font> - <b>'.$title.'</b><br />'.$announcement.'</p>';
}
?>