Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/11/2011, 06:31
sekane
 
Fecha de Ingreso: marzo-2010
Mensajes: 8
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Fallo conexion mysql

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);
	}
	/**