Hola amigos mi problema pasa por los siguiente quiero mostrar mis noticias en una tabla de 2 X 2 logre que me mostrara pero de una manera muy rara Me las muestra repitiendo la misma noticias 2 veces en una misma fila ????
http://img190.imageshack.us/img190/7461/noticiasjn.png
Este es mi codigo.
Código PHP:
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");
$result=mysql_query("Select * From noticia WHERE id='$id' 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
if (empty($row['foto'])){ ?>
<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
if (empty($row['foto'])){ ?>
<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>
Espero me pueda ayudar Gracias