Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/03/2013, 06:28
gldelossantos
 
Fecha de Ingreso: agosto-2011
Ubicación: Santo Domingo
Mensajes: 487
Antigüedad: 12 años, 8 meses
Puntos: 31
Respuesta: no devuelve los datos después de consulta

Intenta con esto

Código PHP:
Ver original
  1. $tipo_habi=$_POST['habitaciones'];
  2.                
  3. $consulta="SELECT * FROM usuarios, habitaciones WHERE usuario='$_SESSION[usuario]' and usuarios.id_habitaciones = habitaciones.id and ".$tipo_habi." = '$tipo_habi'")";
  4. $result_conexion=Conectar($consulta);
  5.  
  6. echo "hola"; //hasta aquí se ejecuta
  7.  
  8. while($fila=mysql_fetch_array($result_conexion))
  9. {
  10.    
  11.    echo $fila[tipo_habi]; //no imprime en pantalla la consulta
  12. }
__________________
El talento se educa en la KARMA y el carácter en la tempestad.
Gabriel De Los Santos