en el navegador me sale este error:
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\Proyecto\administracion\index.php on line 32
este es el codigo php
Código:
ya busque por todos lados el $ que me indica error de sintaxis que no lo encuentro. si me ayudan desde ya muchas gracias <html> <head> <title>Sistema de noticias</title> <?php //conectamos a la base include("local.php"); include("menu.php"); //hacemos las consultas $result=mysql_query("select * from noticias order by fecha Desc"); //$totalregistros=mysql_num_rows($result); echo $totalregistros; ?> </head> <body> <?php //Recogemos las consultas en un array y las mostramos while($row=mysql_fetch_array($result)){ { echo '<h2> Titulo:'.$row['titulo'].'</h2> Fecha de creacion: '.$row['fecha'].' <br>Noticia Corta: '.$row['noticia_corta'].' <br> Noticia: '.$row['noticia'].' <br><br> <a href="editar.php?id_noticia='.$row['id_noticia'].'">editar</a> | <a href="borrar.php?id_noticia='.$row['id_noticia'].'">borrar</a>'; mysql_free_result($rs); } ?> </body> </html>