prepare(" SELECT player, decoration, level FROM data.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 K_Decoration($r["decoration"]); $this->level = $r["level"]; } } } ?>