I would like to create an array based on a select statement. Is this possible?
Example:
select usename from users
recordcount = 3
I want the array to contain the user names
$my_array = array(username1, username2, username3)
I'm thinking that I need to loop through each one of the records and then assign it to a variable and then build the array based on the variables. Any ideas?
I'm hoping I'm just having a complete brain meltdown in not being able to figure this out.
Thanks!