0 && $_GET['category_id'] == '' ) $section_filter = " AND category_id IN (select id from blog_categories where section_id=$section_id order by sort_order) "; include_once("site_functions.php"); if ($_GET['category_id'] != $_SESSION['BLOG_CATEGORY_SELECTED'] ) $_SESSION['SHOW_ALL'] = ''; if ($_SESSION['BLOG_CATEGORY_SELECTED'] == '' || $_GET['category_id'] != '' ) { $category_id = isset($_GET['category_id']) ? $_GET['category_id'] : 0; $_SESSION['BLOG_CATEGORY_SELECTED'] = $category_id; } $category_id = $_SESSION['BLOG_CATEGORY_SELECTED']; if ($category_id != 0 ) $category_filter = ' AND category_id=' . $category_id; else $category_filter = ''; if ($_SESSION['BLOG_ARCHIVE'] == '' || $_GET['type'] != '' ) { $blog_type = isset($_GET['type']) ? $_GET['type'] : 0; $_SESSION['BLOG_ARCHIVE'] = $blog_type; } $blog_type = $_SESSION['BLOG_ARCHIVE']; if ($blog_type == 0 ) $type_filter = " active='yes'" ; else $type_filter = " active='archive' "; $pageNum = isset($_GET['page']) ? $_GET['page'] : 1; $sql = "select * from blogs where ". $type_filter . $category_filter . $section_filter; $paging = generatePagingSite($sql,ABSOLUTE_PATH . "blog.html",$pageNum); $sql = $sql . ' order by pub_date DESC ' . $paging['limit']; $_SESSION['SELECTED_MENU_SECTION'] = $section_id; include_once("includes/header.php"); ?>
Select a Blog  
 
style="margin-right:17px" /> by
... [read more]