Gracias por responder tan rápido, te adjunto un poco más de código, he puesto un trozo porque el error me lo da en la línea 51. A ver si me puedes hechar una mano.
Gracias!
Código:
* @desc Connects to server
*/
function Connect($selectDB=true, $new=true)
{
if($this->dbcon = mysql_connect($this->GetDBHost(), $this->dbuser, $this->dbpass, $new))
{
return $selectDB ? $this->SelectDB($this->dbname, $this->dbcon) : true;
}
return false;
}
/**
* @return bool
* @param $dbname string
* @desc Selects the database to work with. Returns true if exists, false if not.
*/
function SelectDB($dbname)
{
return @mysql_select_db($dbname, $this->dbcon);
}
/**