Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/02/2011, 19:39
matiasbmx
 
Fecha de Ingreso: febrero-2011
Mensajes: 124
Antigüedad: 13 años, 2 meses
Puntos: 4
Paginacion de sistema de noticias

Hola!, necesito ayuda para la paginacion de mi sistema de noticias, que al poner muchas noticias, se corre el diseño y queda feito...
maximo 5 noticias por hoja...
el code es:
Código PHP:
<?php 
while($row=mysql_fetch_array($result)) 

$result2=mysql_query("select * from comentarios where id='".$row[id_noticia]."'",$connect); 
$totalcomentarios=mysql_num_rows($result2); 
echo 
'<p> <img src="images/imagen250x150.jpg" align="left" width="250" height="150" /><p><span class="Estilo3">'.$row[titulo].'</span></p><span class="Estilo5"> '.$row[noticia].'&nbsp;<a href="ver.php?id='.$row[id_noticia].'">Seguir leyendo</a></span></p>
                <p><span class="Estilo5">Por '
.$row[autor].', en '.$row[fecha].'  <a href="ver.php?id='.$row[id_noticia].'">&nbsp;&nbsp;<img src="images/IconoNoticia.gif" />&nbsp; '.$totalcomentarios.' Comentario(s)</a></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>'
;
}
mysql_free_result($result
?>