prepare(" SELECT slot, stat, value, enchant, grind FROM rune_stat WHERE rune = :rune AND slot = :slot; "); $statement->bindValue(':rune', $rune, SQLITE3_INTEGER); $statement->bindValue(':slot', $slot, SQLITE3_INTEGER); $r = $statement->execute()->fetchArray(SQLITE3_ASSOC); if ($r){ $this->slot = $r["slot"]; $this->stat = $r["stat"]; $this->value = $r["value"]; $this->enchant = $r["enchant"]; $this->grind = $r["grind"]; switch ($this->stat){ case RUNE_STAT_ID::HP: $this->stat_name = "HP"; break; case RUNE_STAT_ID::HP_P: $this->stat_name = "HP%"; break; case RUNE_STAT_ID::ATK: $this->stat_name = "ATK"; break; case RUNE_STAT_ID::ATK_P: $this->stat_name = "ATK%"; break; case RUNE_STAT_ID::DEF: $this->stat_name = "DEF"; break; case RUNE_STAT_ID::DEF_P: $this->stat_name = "DEF%"; break; case RUNE_STAT_ID::SPD: $this->stat_name = "SPD"; break; case RUNE_STAT_ID::CRR: $this->stat_name = "CRR"; break; case RUNE_STAT_ID::CRD: $this->stat_name = "CRD"; break; case RUNE_STAT_ID::RES: $this->stat_name = "RES"; break; case RUNE_STAT_ID::ACC: $this->stat_name = "ACC"; break; } } } } ?>