Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/07/2010, 12:58
Avatar de elchicho118
elchicho118
 
Fecha de Ingreso: mayo-2010
Mensajes: 74
Antigüedad: 14 años
Puntos: 1
Respuesta: while dentro de un If

mas o menos asi es lo que quieres

Código PHP:
Ver original
  1. <?php
  2.   if($can == 0){  
  3.  
  4.     echo '<p align="center">No hay posts por el momento</p>';
  5.  
  6.   }  
  7.  
  8.   else{  
  9.  $i =0;
  10. while($row = mysql_fetch_array($registro))  
  11.   {  
  12. ?>
__________________
QUISIERA HACER LO QUE NADIE HA HECHO EN LA MITAD DE TIEMPO