id = $id; $this->name = $row['cat_name']; $this->description = $row['cat_description']; $this->thread_count = $row['cat_thread_count']; $this->post_count = $row['cat_post_count']; } } mysqli_free_result($result); } function get_threads() { } }