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."); }
que es public ?