query("select * from tjcgPosts inner join tjcgTags on tjcgTags.tagID=tjcgPosts.postType where tjcgPosts.postCode='$node' and tjcgPosts.postStatus = 1 and postDate <= '$now';"); // error_log("select * from tjcgPosts inner join tjcgTags on tjcgTags.tagID=tjcgPosts.postType where tjcgPosts.postCode='$node' and tjcgPosts.postStatus = 1 and postDate <= '$now';"); // $rows = array(); $GetPost=$GetPostQ->fetch_assoc(); return $GetPost; $GetPost->free(); $GetPostQ->free(); $link->close(); } list($home,$code)=explode("/",$Args); // echo $Args; $GetDetails = GetPostDetailsByID($Args); $tag = $GetDetails['tagShortName']; $title = $GetDetails['postID']; $name = $GetDetails['postName']; $header = "http://syrianobserver.com/EN/".$tag."/".$title."/".$name; // echo "$header"; header("Location: $header/"); //select * from tjcgPosts inner join tjcgTags on tjcgTags.tagID=tjcgPosts.postType where tjcgPosts.postCode='DcKD8Ioc' and tjcgPosts.postStatus = 1 and postDate