Ver original$arreglo[] = array();$i=0;while($row = mysql_fetch_array($res_consulta){ $arreglo[$i] = $row['nombre']; $i++;}