Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/01/2006, 12:49
Avatar de eft0
eft0
 
Fecha de Ingreso: junio-2003
Ubicación: Santiago - Chile
Mensajes: 635
Antigüedad: 20 años, 10 meses
Puntos: 9
Permiteme modificar un poco tu funcion para que pruebes y nos pegues el error exatcto que da:

Código PHP:
function conectar() { 
    if(!
$link mysql_connect("localhost","elinte","herbie")) { 
        echo 
mysql_error();
        exit(); 
    } 
    
    if (!
mysql_select_db("news",$link)) { 
        echo 
mysql_error();
        exit(); 
    }
     
    return 
$link

Suerte, nos avisas.