prepare(" SELECT player, decorative, level FROM decoration WHERE id = :id; "); $statement->bindValue(':id', $id, SQLITE3_TEXT); $r = $statement->execute()->fetchArray(SQLITE3_ASSOC); if ($r){ $this->player = $r["player"]; $this->decoration = new Decorative($r["decorative"]); $this->level = $r["level"]; } } } ?>