Código PHP:
<? $comentarios=mysql_query("SELECT * FROM comentnoticias ORDER BY id desc LIMIT 2",$link);
while($coment=mysql_fetch_array($comentarios)){
$usercom=mysql_query("SELECT * FROM usuarios WHERE id=$coment[usuarioid]",$link);
$usc=mysql_fetch_array($usercom)?>
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong><? echo $usc[nick].":";?> </strong><a href="noticias.php?id=<? echo "$coment[noticiaid]"; ?>%20"><? echo substr("$coment[texto]", 0, 40);
echo "...";?></strong></a></td>
</tr>
</table> <br>
<? }
?>