Código PHP:
<? include("web/logo.php"); ?>
<td width="0" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
</td>
<td width="611" align="center" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><?php
//conectamos a la base
$connect=mysql_connect("db.smalzira.org","DBUA720","980980");
//Seleccionamos la base
mysql_select_db("DBA296-sma",$connect);
//hacemos las consultas
$result=mysql_query("select * from noticiases order by fecha Desc", $connect);
$totalregistros=mysql_num_rows($result);
$result2=mysql_query("select * from noticiases where id",$connect);
$totalcomentarios=mysql_num_rows($result2);
?> <?php
//Recogemos las consultas en un array y las mostramos
while($row=mysql_fetch_array($result))
{
$result2=mysql_query("select * from noticiases where id='".$row[id]."'",$connect);
$totalcomentarios=mysql_num_rows($result2);
mysql_free_result($result)
?>
<table width="72%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%" height="24" align="center" background="../images/new.png"><span style="color: #ffffff"><span style="font-size: small"><span style="font-family: Verdana"><strong>Administrador</strong></span></span></span></td>
</tr>
<tr>
<td align="center" bgcolor="#CCCCCC"><table width="222" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="65"><label for="checkbox_row_2">titulo</label></td>
<td width="77">editar</td>
<td width="80">borrar</td>
</tr>
<tr>
<td><?php $row[noticia] ?></td>
<td><a href="editar.php?id='.$row[id].'">editar</a></td>
<td><a href="borrar.php?id='.$row[id].'">borrar</a></td>
</tr><? } ?>
</table></td>
</tr>
</table><br /></td>
</tr>
<? include("web/logo1.php"); ?>