host, $this->user, $this->pass, $this->name) or die('A kapcsolódás sikertelen: ' . mysqli_connect_error()); if(mysqli_connect_errno()) { exit(); }else { $this->conn = $con; } return $this->conn; } }