http://img190.imageshack.us/img190/7461/noticiasjn.png
Este es mi codigo.
Código PHP:
Espero me pueda ayudar Gracias Ver original
<?php include('conectar.php'); $link=Conectarse(); $categoria = $_GET['categoria']; $listado = mysql_query("select * from noticia where categoria='$categoria' and estado=1 order by id desc LIMIT 1"); if ($nfilas > 0) { ?> <style type="text/css"> <!-- .Estilo1 {color: #FF0000} --> </style> <?php ?> <table align="center"> <tr><td> <table border="0" align="center"> <tr> <td colspan="0" align="center"><h2><span class="Estilo1"><?php echo $row['titulo']; ?></span></h2> <?php ?> <img align= "absmiddle" border="0" style=" margin-right:10px; float:left;" src="modulos/noticias/vistas/fotos/defecto.jpg" width="80" height="80" align="left"> <?php } else{ ?> <img align="absmiddle" border="0" style=" margin-right:10px; float:left;" src="modulos/noticias/vistas/fotos/<? echo strip_tags($row['foto']) ?>" width="80" height="80" align="left"> <?php }?> <div align="justify"><?php echo $row['texto_corto']; ?> </div></td> <?php echo $row['fecha_publicacion']; ?> <a href="index.php?mod=noticias&pag=leer_noticia&id=<?php echo $row['id']; ?> ">Leer más..</a></td> </tr> </table> </td> <td> <table border="0" align="center"> <tr> <td colspan="0" align="center"><h2><span class="Estilo1"><?php echo $row['titulo']; ?></span></h2> <?php ?> <img align= "absmiddle" border="0" style=" margin-right:10px; float:left;" src="modulos/noticias/vistas/fotos/defecto.jpg" width="80" height="80" align="left"> <?php } else{ ?> <img align="absmiddle" border="0" style=" margin-right:10px; float:left;" src="modulos/noticias/vistas/fotos/<? echo strip_tags($row['foto']) ?>" width="80" height="80" align="left"> <?php }?> <div align="justify"><?php echo $row['texto_corto']; ?> </div></td> <?php echo $row['fecha_publicacion']; ?> <a href="index.php?mod=noticias&pag=leer_noticia&id=<?php echo $row['id']; ?> ">Leer más..</a></td> </tr> </table> <?php } ?> <?php } else echo (" <center> No existen noticias Publicadas... </center>"); ?> </table>