This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Define database configuration | |
define("DB_HOST", $dblocation); | |
define("DB_USER", $dbusername); | |
define("DB_PASS", $dbpassword); | |
define("DB_NAME", $dbname); | |
class Database{ | |
private $host = DB_HOST; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Session { | |
private $db; | |
public function __construct(){ | |
// Instantiate new Database object | |
$this->db = new Database; | |