add strings to session

This commit is contained in:
Hash Borgir 2023-06-04 23:01:26 -06:00
parent 4315b08b56
commit a1f3ca5320

View File

@ -15,6 +15,7 @@ class D2Strings {
public function __construct(){ public function __construct(){
$sql = "SELECT * FROM strings"; $sql = "SELECT * FROM strings";
$this->strings = PDO_FetchAssoc($sql); $this->strings = PDO_FetchAssoc($sql);
return $this->strings; $_SESSION['strings'] = $this->strings;
return $this->strings;
} }
} }