I have this chunk of code. It displays post date and title on the main page of a site. what I can not seen to do is displat the expiredate on the page.
Help
function get_list_cal($weight = 2, $section_id = 0, $section_dir = "") {
global $tbl_name_cal;
global $now_datetime;
global $page_postdate;
global $page_expiredate;
global $page_list_cal;
$query = "SELECT ID, title, post_date FROM $tbl_name_cal
WHERE status = 1
AND post_date >= '$now_datetime'
AND weight <= '$weight'
AND section_id = '$section_id'
AND ( expire_date > '$now_datetime' OR expire_date = '')
ORDER BY post_date
";
$result = mysql_query($query);
$string = "";
while ($row = mysql_fetch_object($result)) {
$content =stripslashes($row->content);
$title = stripslashes($row->title);
$page_postdate = $row->post_date;
$page_expiredate = $row->expire_date;
$id = $row->ID;
// Set date format for list
$page_postdate = format_datelong($page_postdate);
$page_expiredate = format_datelong($page_expiredate);
$string = $string . $page_postdate . "<br><b><font face="Arial, Helvetica, sans-serif"><a href=\"";
if ($section_dir != "") {
$string = $string
. $section_dir . "/";
}
$string = $string . "item.php?id=". $id . "\">" . $title . "</a>" . "</font></b><br><br> \n";
}
$page_list_cal = $string . "";
}