Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/11/2009, 14:47
Avatar de dcreate
dcreate
 
Fecha de Ingreso: octubre-2009
Ubicación: Veracruz
Mensajes: 536
Antigüedad: 15 años, 4 meses
Puntos: 22
Respuesta: Pasando una consulta a una variable PHP

puede que te sirva esto
Código php:
Ver original
  1. $bus=mysql_query("select *from tabla where campo='condicion'");
  2. $cons=mysql_fetch_array($bus);
  3.  
  4. echo $cons['nombre_campo'];

suerte