Untitled
public php v1 · immutable private function getData() { $query = "SELECT section_id, name, dir, description, banner FROM ".Config::get('board_relation')." WHERE id = ".$this->id; if ($stmt = Database::singleton()->prepare($query)) { $stmt->execute(); $stmt->bind_result($section_id, $name, $dir, $description, $banner ); while ($stmt->fetch()) { $this->section = $section_id; $this->name = $name; $this->directory = $dir; $this->description = $description; $this->banner = $banner; } $this->data = true; }