Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/06/2010, 01:42
DarkKing
 
Fecha de Ingreso: noviembre-2006
Mensajes: 166
Antigüedad: 17 años, 5 meses
Puntos: 4
Respuesta: Como crear array a partir de una base de datos...

A ver si te funciona así:

Código PHP:
$sql "select states from  states";
$result mysql_query($sql) or die(mysql_error());
$states = array();

while(
$datos mysql_fetch_array($result))
    
array_push($states$datos[0]);