Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/08/2015, 11:51
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: mi basica funcion no funciona

prueba asi a ver:
Código PHP:
Ver original
  1. <?php
  2.             if(empty($_POST['id'])){}
  3.             else{
  4.             $u = get_user($_POST['id']);
  5.             $cont=$u->num_rows;
  6.  
  7.             if($cont>=1){
  8.                 foreach ($u as $cont => $value) {              
  9.                         ?>
  10.                         <input type="text" name="resul" value="El usuario con id<?php echo $id;?> es: <?php echo $value['nombre'];?>" disabled>
  11.                         <?php  
  12.                    
  13.                 }
  14.  
  15.             }
  16.             elseif ($cont==0) {
  17.                 ?>
  18.                     <input type="text" name="resul" value="El usuario con id<?php echo $id;?> no existe" disabled>
  19.                 <?php
  20.             }
  21. }
  22.            
  23.         ?>
__________________
[email protected]
HITCEL