Ver originalwhile($reg2=mysql_fetch_array($resul2)) { $this->elemento[]=$reg2["nombre_elemento"]; } return $this->elemento;