Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/04/2010, 12:51
rpv
 
Fecha de Ingreso: febrero-2010
Mensajes: 275
Antigüedad: 14 años, 2 meses
Puntos: 10
Respuesta: meter variables en arreglo

Código PHP:
Ver original
  1. $existing_users=array();
  2. $sql=mysql_query("select * from usuarios");
  3. while($row=mysql_fetch_array($sql)){
  4. $existing_users[]=$row['usuario'];
  5. }
  6.  
  7. //puedes probar con:
  8.  
  9. var_dump($existing_users);