query($sql, "i", $id); if (empty($result)) { return false; } $this->id = $id; $this->content = $result[0]['post_content']; $this->date_created = $result[0]['post_date_created']; $this->date_edited = $result[0]['post_date_edited']; $this->thread = new Thread(); $this->thread->get_from_database($result[0]['post_thread']); $this->author = new User(); $this->author->get_by_id($result[0]['post_author']); return true; } }