Ver Mensaje Individual
  #8 (permalink)  
Antiguo 15/09/2012, 11:39
Avatar de memoadian
memoadian
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: <?php echo 'México'?>
Mensajes: 3.696
Antigüedad: 14 años, 10 meses
Puntos: 641
Respuesta: Problemita con un blucle while

Jaja ok ok.

a ver así:

Código PHP:
Ver original
  1. <?php
  2.     if( isset($_GET['id']) ){
  3.         $id = $_GET['id'];
  4.         $result21=mysql_query("select * from alimentos where id_usuario = '$id'");
  5.     }
  6.     if (mysql_num_rows($result21) > 0){
  7.         while($row = mysql_fetch_array($result21)){
  8.             echo  $row["nombre"];
  9.         }
  10.     }else{
  11.         echo ("No tiene ningun alimento todavía");
  12.     }                                                          
  13. ?>

podría ser que el espacio interfiriera.