Saturday, 24 June 2017

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

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...