link=mysql_connect($this->bd,$this->user,$this->password); if (!mysql_select_db($this->nombre_bd,$this->link)) { return false; } mysql_query("SET NAMES 'latin1'"); return $this->link; } function getLink(){ return $this->link; } } ?>