0 && $_GET['category_id'] == "") $section_filter = " category_id IN (select id from article_categories where section_id=$section_id) "; include_once("site_functions.php"); if ($_GET['category_id'] != $_SESSION['ARTICLE_CATEGORY_SELECTED'] ) $_SESSION['SHOW_ALL'] = ''; if ($_SESSION['ARTICLE_CATEGORY_SELECTED'] == '' || $_GET['category_id'] != '' ) { $category_id = isset($_GET['category_id']) ? $_GET['category_id'] : 0; $_SESSION['ARTICLE_CATEGORY_SELECTED'] = $category_id; } $category_id = $_SESSION['ARTICLE_CATEGORY_SELECTED']; if ($category_id != 0 ) if ( $section_filter == '' ) $category_filter = ' category_id=' . $category_id.' '; else $category_filter = ''; $pageNum = isset($_GET['page']) ? $_GET['page'] : 1; $sql = "select * from articles where ".$category_filter . $section_filter; $paging = generatePagingSite($sql,ABSOLUTE_PATH . "marketing_tips.html",$pageNum); $sql = $sql . ' order by pub_date DESC ' . $paging['limit']; $_SESSION['SELECTED_MENU_SECTION'] = $section_id; include_once("includes/header.php"); ?>
Select a Topic