Wenas, aver tngo un codigo para mostrar mis noticias de una db, el codigo es el siguiente:
Código PHP:
<?
include("config.php");
$link = mysql_connect("$server","$dbuser","$dbpass");
$query = "SELECT * from noticias order by id DESC limit 10";
$result = mysql_db_query ($database, $query, $link);
while ($row = mysql_fetch_array ($result)) {
$titulo = $row["titulo"];
$noticia = $row["noticia"];
$autor = $row["autor"];
$fecha = $row["fecha"];
?>
Dspues el html con las tablas y tal, xo me da este error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/weblog/public_html/log/sec/inicio.php on line 15
que ago mal?
Gracias un saludo