Saturday 14 September 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...