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

si quieres q te mueste todo lo q hay seria

Código php:
Ver original
  1. $bus=mysql_query("select *from tabla where campo='condicion'");
  2. $cons=mysql_fetch_array($bus);
  3. do
  4. {
  5. echo $cons['nombre_campo'];
  6. }while($cons=mysql_fetch_array($bus));