Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/02/2006, 12:21
Tofuh
 
Fecha de Ingreso: junio-2003
Mensajes: 66
Antigüedad: 20 años, 10 meses
Puntos: 0
Problema codigo PHP

Bueno estoy creando un Sistema de Noticias con un tutorial y me pone que hay un error de sintaxis en el código, en la línea que puse en rojo, soy nuevo en esto:

<html>
<head>
<title>Sistema de noticias</title>
<?
$connect=mysql_connect("servidor","noticiasbd","pa ss")';
mysql_select_db("noticiasbd",$connect);
$result=mysql_query("select * from noticias order by fecha Desc", $connect);
$totalregistros=mysql_num_rows($result);
?>
</head>
<body>
<?
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)
?>
</body>
</html>

Gracias