Friday, May 25, 2018

Parse error: syntax error, unexpected T_DNUMBER in /home/a3206525/public_html/easymailer/inc/db_wrapper.php on line 6

I'm quite new on PHP coding and would like to see If it's possible to get help of the code below. Apparently the error is only on line 6.


class DBWrapper
{
function DBWrapper($server,$db,$user,$pass)
{
$this->Server = $server;
$this->DB = $db;
$this->User = $user;
$this->Password = $pass;
mysql_connect($this->Server, $this->User, $this->password) or
die("Can't connect, please check your settings. Here is the MySQL error: ".mysql_error());
mysql_select_db($this->DB) or
die("Can't select DB, please check your settings. Here is the MySQL error: ".mysql_error());
}

I really hope to receive some help about this.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...