Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/03/2008, 04:22
ZonaInter
 
Fecha de Ingreso: junio-2007
Mensajes: 3
Antigüedad: 16 años, 10 meses
Puntos: 1
Re: problema de sintaxis en sistema de noticias

Si no me equivoco el problema es por varios '," trata con este codigo:
Código PHP:
<?php
$connect
=mysql_connect("localhost","root","pass");

mysql_select_db("sistemadenoticias",$connect);

$result=mysql_query("select * from noticias order by fecha Desc"$connect);
$totalregistros=mysql_num_rows($result);

while(
$row=mysql_fetch_array($result))
{
echo 
"<h2>".$row[titulo]."</h2><br><p>".$row[articulo]."</p><br><tudiv>".$row[autor]."|".$row[fecha]."| ".$row[categoria]."|
<a href=ver.php?id="
.$row[id_noticia].">comentarios()</a> |
<a href=editar.php?id="
.$row[id_noticia].">editar</a></tu div>";
}
mysql_free_result($result)
?>