/** * Constructor * * @param $request * @throws Exception */ public function __construct($request) { parent::__construct($request); //$this->db = new mysqli('thecodingshackcom.ipagemysql.com', 'discover', 'Hithippie13!', 'discover'); $this->db = new mysqli('localhost', 'root', 'root', 'discover'); if ($this->db->connect_errno > 0) { die('Server was unable to connect to the database'); } }