Estimados me baje una clase para conexion a mysql de
http://www.bytemycode.com/snippets/snippet/636/
pero me da este error
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' ON LINE 20
y en la linea 20 tengo...
Código HTML:
public function connect(){
$this->link = mysql_connect($this->host, $this->user, $this->pass) or die("<b>Error:</b> Connection to database server cannot be established.");
mysql_select_db($this->base, $this->link)or die("<b>Error:</b> Connection to database cannot be established.");
}
si le saco el public funciona
que es public ?