Saturday, September 14, 2019

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

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...