public function get_post($name) { $query = "SELECT * FROM blog_posts WHERE name = '". $name ."'"; $result = mysql_query($query) or die(mysql_error()); $posts = mysql_fetch_row($result); $name_link = str_replace(" ", "_", $posts[1]); echo "
". $posts[1] ." (". $posts[5] .") Posted on ". $posts[2] ."
". $this->bbcode_post($posts[4]) ."
"; }