Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/11/2006, 04:19
Tofuh
 
Fecha de Ingreso: junio-2003
Mensajes: 66
Antigüedad: 20 años, 10 meses
Puntos: 0
Weblog en PHP error

estoy intentando hacer un blog sencillo en PHP, me sale el siguiente error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in C:\Archivos de programa\xampp\htdocs\blog_prueba\weblog.php on line 14

el código es el siguiente:

Código PHP:
<html>
<head><title>Untitled</title></head>
<body>
<h1>Comentarios</h1>
<dl>
<?php
mysql_connect
("localhost","root","");
mysql_select_db("weblog_db");
$query ="SELECT entrytitle, entrytext,";
$query.=" DATE_FORMAT(entrydate, '%M %d, %Y') AS date";
$query.=" FROM weblog ORDER BY entrydate DESC LIMIT 10";
$result=mysql_query($query);
while (list(
$entrytitle,$entrytext,$entrydate) =
mysql_fetch_row($result)) {
echo 
"<dt><b>$entrytitle ($entrydate)</b></dt>";
echo 
"<dd>$entrytext</dd>";
}
?>
</dl>
</body>
</html>
Bueno soy nuevo en esto del PHP, espero que me puedan ayudar.

Gracias por adelantado.