PHP Parse error: syntax error, unexpected ';', expecting T_FUNCTION in connectionManager.php on line 35
Code: Select all
<?php
class MySQL {
var $server;
var $username;
var $password;
var $db_name;
var $qry_result;
/*
Constructor. Sets the values for the database.
@param $server - Server Name (Usually localhost)
@param $username - Database Access Username
@param $password - User Password
*/
function __construct($server, $username, $password, $db_name) {
$this->server = $server;
$this->username = $username;
$this->password = $password;
$this->db_name = $db_name;
//Connect to the database
$this->connect();
}
/*
Connects the system to the given database.
*/
function connect() {
mysqli_connect($this->server, $this->username, $this->password) or die(mysql_error());
mysqli_select_db($this->db_name) or die(mysql_error());
}
?> ----------------------------------------------------35th line.