The error I get is "Parse error: parse error, unexpected T_NEW in D:\HTTP\Sites\Livesite3\classes\db_c.php3 on line 12"
and this is the db_c code
<?
/ db_c handles connections to the database /
class db_c {
var $dbName = "hfn";
var $dbPassword = "xxxx";
var $dbHost = "hyd-hfnstage";
var $dbAccount = "sa";
var $dbHandle = -1;
var $log = new log_c();
function init($newLog) {
$this->log = $newLog;
/* connect to the database server */
$this->dbHandle = mssql_connect($this->dbHost, $this->dbAccount,
$this->dbPassword);
if ($this->dbHandle < 0) {
$log->write("mssql_connect failed");
return;
}
$this->log->write("mssql_connect successful");
/* select the database */
if (mssql_select_db($this->dbName, $this->dbHandle) != true) {
$this->log->write("mssql_select_db($this->dbName, $this->dbHandle) failed");
$this->dbHandle = -1;
return;
}
$this->log->write("mssql_select_db($this->dbName) successful");
}
};