Hi guys, I am in need of a code that can put the values of a column in an array. EG:
I have a database with usernames, and I wanted each username to be stored in an array automatically, so each time the page is viewed it runs the code and adds all the users in an array.
I am trying to use this code for my site
Scroll to the bottom, where the code is for php. Is it possible to the array like that?
EDIT: oh oh! I am getting an idea! Please tell me if I am on the right track, you use a while loop to get the usernames and add them each to the array while incrementing the array number... if that is the right way, will someone help me come up with the code?