![](http://i45.tinypic.com/110y83s.jpg)
este es el codigo, pero me da errores donde deven de ir las respuestas:
Código PHP:
<html>
<head>
<title>Sistema de noticias</title>
<?php
//conectamos a la base
$connect=mysql_connect("xxxxx","xxxxx","xxxxx");
//Seleccionamos la base
mysql_select_db("xxxxx",$connect);
//hacemos las consultas
$result=mysql_query("select * from noticias order by fecha Desc", $connect);
$totalregistros=mysql_num_rows($result);
$result2=mysql_query("select * from comentarios where id",$connect);
$totalcomentarios=mysql_num_rows($result2);
?>
</head>
<body>
<p>
</p>
<table width="608" height="27" border="1">
<tr>
<td width="504"> <?php
//Recogemos las consultas en un array y las mostramos
while($row=mysql_fetch_array($result))
{
$result2=mysql_query("select * from comentarios where id='".$row[id_noticia]."'",$connect);
$totalcomentarios=mysql_num_rows($result2);
echo '<h3><center></center></h3> <br> <br> <a href="ver.php?id='.$row[id_noticia].'">'.$row[titulo].'<br><br>';
}
mysql_free_result($result)
?></td>
<td width="88"> <?php
//Recogemos las consultas en un array y las mostramos
while($row=mysql_fetch_array($result))
{
$result2=mysql_query("select * from comentarios where id='".$row[id_noticia]."'",$connect);
$totalcomentarios=mysql_num_rows($result2);
echo '<h3><center></center></h3> <br> <br> ('.$totalcomentarios.')<br><br>';
}
mysql_free_result($result)
?> </td>
</tr>
</table>
<p> </p>
</body>
</html>