el codigo es
Código PHP:
<html>
<head>
<title> Conecciones a la base de datos </title>
</head>
<body>
<?php
$conect = mysql_connect("localhost", "notos", "xxxxxx")
or die("No se puede conectar:" . mysql_error());
print("coneccion ok!");
$db = mysql_select_db("notos", $conect)
or die("no se puede seleccionar tabla:" . mysql_error());
print("<br>correcto tabla ok!");
print("<hr>");
$result = mysql_query("SELECT id FROM noticias", $conect);
if ($result == true)
{
echo "todo ok !";
}
echo "<hr>";
while ($r = mysql_fetch_array($result, MYSQL_NUM)){
prinf("id: %s titulo: %s noticia: %s autor: %s",$r[0], $r[1], $r[2], $r[3]);
}
mysql_free_result($result)
mysql_close($conect);
?>
</body>
</html>
http://webcindario.com/notos/mysql.php
bueno en si no es un error sino que el IE muestra un icono de error abajo