public function dbConnect() { self::$con = mysqli_connect($this->hostName, $this->userName, $this->passWord, $this->dbName); if (!self::$con) { mysqli_error(self::$con); } }