Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/08/2006, 21:50
chuwanet
 
Fecha de Ingreso: diciembre-2004
Mensajes: 49
Antigüedad: 19 años, 4 meses
Puntos: 0
error en la conexion..

Hola, tengo una conexión que dice asi:

function Conn() {
$dbserver = "localhost";
$dbname = "puntolib_base";
$username = "root";
$userpass = "";
if (!($link = mysql_connect($dbserver, $username, $userpass))) {
echo "Error conectando a la base de datos.";
exit();
}
if (!mysql_select_db($dbname, $link)) {
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}


tengo la base de datos en el phpmyadmin, todo funciona bien, es más otros sites que tengo me funcionan sin problemas, PERO ESTE NO.

CUANDO VOY A USARLO ME APARECE LO SIGUIENTE EN EL BROWSER

500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.


NO LO PUEDO SOLUCIONAR

porfavor ayuda