include 'scripts/connection.php'; include 'scripts/functions.php'; showHeader(); $msgs_to_display = "20"; $films_link = "/films/details.php?id="; $news_link = "/news/news.php?id="; $interview_link = "/interviews/show.php?id="; $sql = " SELECT u.user_name, 0 as news_id, 'U' as news_type, u.news_item, u.date_added, DATE_FORMAT(u.date_added,'%M %e, %Y') as news_date, CASE WHEN u.title != '' THEN u.title ELSE CONCAT('Site update for ',DATE_FORMAT(u.date_added,'%M %e, %Y')) END as news_title FROM CHT_UPDATES u where u.deleted is null UNION ALL SELECT NULL as user_name, n.pKey as news_id, 'N' as news_type, n.article as news_item, n.news_date as date_added, DATE_FORMAT(n.news_date,'%M %e, %Y') as news_date, CASE WHEN c.title != '' THEN CONCAT('',c.title,'',' : ',n.headline) ELSE n.headline END as news_title FROM NEWS_ITEMS n LEFT JOIN MEDIA_CAT_NEWS cn ON n.pKey = cn.news_id LEFT JOIN MEDIA_CATEGORIES c ON cn.cat_id = c.pKey UNION ALL SELECT NULL as user_name, i.pKey as news_id, 'I' as news_type, i.interview_text as news_item, i.date_given as date_added, DATE_FORMAT(i.date_given,'%M %e, %Y') as news_date, CONCAT('New Interview: ',i.title) as news_title from INTERVIEWS i LEFT JOIN MEDIA_CATEGORIES c on i.film_link = c.pKey ORDER BY date_added DESC "; $query_result = @mysql_query($sql,$connection) or die('Could not process SQL because: ' . mysql_error()); $num_rows = mysql_num_rows($query_result); if (($_GET[start] == "") || ($_GET[start] < $msgs_to_display) || ($_GET[start] > $num_rows)) { $start_at_msg = "8"; } else { $start_at_msg = $_GET[start]; } $current_msg = "0"; $end_at_msg = $msgs_to_display + $start_at_msg; ?>
For the most recent updates, please visit the main page of this site.
| Currently there are no archives. |