$this->connection = mysql_connect("$host", "$user", "$pswd") or die("Database connection failed ". mysql_error());
Anda harus menggunakan
$this->host,$this->user,$this->pswd
$this->connection = mysql_connect("$host", "$user", "$pswd") or die("Database connection failed ". mysql_error());
Anda harus menggunakan
$this->host,$this->user,$this->pswd