Hey Guys,
Hoping I can get a bit of help with this error:
Deprecated: Assigning the return value of new by reference is deprecated in …\db\Database.php on line 6
Notice: Could not connect to server in …\db\Database.php on line 38
Here is the code:
[php]$host = ‘127.0.0.1’;
$user = ‘something’;
$pass = ‘somethingelse’;
$name = ‘signout’;
$db =& new MySQL($host,$user,$pass,$name);
class MySQL {
var $host;
var $dbUser;
var $dbPass;
var $dbName;
var $dbConn;
var $connectError;
function MySQL ($host,$dbUser,$dbPass,$dbName) {
$this->host=$host;
$this->dbUser=$dbUser;
$this->dbPass=$dbPass;
$this->dbName=$dbName;
$this->connectToDb();
}[/php]
Thanks,
SACoder