I made a database class file but I don't know why it's display this error
Parse error: syntax error, unexpected '{', expecting '('
Here's the class code
<?php
error_reporting(0);
Class mqConnect {
protected $host = "localhost";
protected $user = "root";
protected $pass = "root";
protected $database = "name";
public function mqdbConnection() {
// I Don't Like to show database errors to public
// $this->dbconnect = mysql_connect($this->host, $this->user, $this->pass, $this->database) OR trigger_error(mysql_error(), E_USER_ERROR);
$this->dbconnect = mysql_connect($this->host, $this->user, $this->pass, $this->database) OR die('Database Error <!--'.mysql_error().'-->');
return $this->dbconnect;
}
public function mqdbSellect() {
$this->dbsellect = mysql_select_db($this->database) OR die('Database Error <!--'.mysql_error().'-->');
return $this->dbsellect;
}
}
?>