Jul 10, 2009, 3:10 PM
Post #1 of 4
all results from single database column into an array?
I have a database table with a single field, containing several rows of numerical values. For example..
I'd like to fetch these numbers from the database and store them into an array. So the final result would be something like @data_array which i could use elsewhere in my script.. for example using @data_array to get the value 345.. and so on..
I'm familiar with using the fetchrow_array() method and a while loop to pull rows out of a table but im not sure how to make arrays out of values in the same table column.
I'd be grateful for help with this!