We're yet to add any articles to this news section. Please check back soon…
Go to Latest News } ?> ///////get the blog contents while($row = $get_blog_content->fetch(PDO::FETCH_ASSOC)) { $title = htmlentities($row['name']); $img= str_replace("/media/", "/media-thu/",$row['image']); $date = $row['date']; $date = str_replace("-","/","$date"); $nicedate = nice_date($date,true,false,false,false); $blog_id = $row['id']; $description = $row['description']; $description = trim_text($description,120); $description = strip_tags($description); $nice_blog_querystring = nice_url($title); $url = "/blog-post/" .$nice_blog_querystring ."/" .$blog_id. "/"; //Get category name $cat_ids_arr = explode(",",$row['category_ids']); $cat_id = $cat_ids_arr[0]; $get_cat_title = $conn->prepare("SELECT `name`,`id` FROM `blog_categories` WHERE `id` = :cat_id "); $get_cat_title->bindParam(':cat_id',$cat_id); $get_cat_title->execute(); $row2 = $get_cat_title->fetch(PDO::FETCH_ASSOC); $cat_name = $row2['name']; $cat_url = "/blog-list/".nice_url($cat_name)."/".$cat_id; $cat_str = "$cat_name"; ?>