Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/05/2007, 15:49
mdp223
 
Fecha de Ingreso: febrero-2006
Mensajes: 28
Antigüedad: 18 años, 2 meses
Puntos: 1
Pregunta Re: problema al conectar php con mysql!!!!

cuando pruebo ese script me da el error!!!
ahi esta completo:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="" content="text/html; charset=iso-8859-1">
</head>

<body>

<?

$link = mysql_connect("localhost","root","123456");

mysql_select_db("mydb", $link);

$result = mysql_query("SELECT * FROM agenda", $link);

echo "Nombre: ".mysql_result($result, 0, "nombre")."<br>";

echo "Dirección: ".mysql_result($result, 0, "direccion")."<br>";

echo "Teléfono :".mysql_result($result, 0, "telefono")."<br>";

echo "E-Mail :".mysql_result($result, 0, "email")."<br>";

?>

</body>

</html>

osea el tema es que todos me dan ese error cuando pruebo la funcion mysql_connect();

en este me da en otro linea porque depende donde lo ponga la funcion por eso en el otro dice linea 36!!!!