Long time no see... PHP Arrays anyone?

It’s been a while since I’ve strolled these woods…

Anyway… Good to be back.

I’m making a photo gallery with php, and I want to make a directory list of all the folders in which the photos are kept in. You click on a folder it opens up.

Thats all dandy there, but I have a few ways I want to have this directory ordered. Chronologically, by blog entries(if they were published in a blog), and whatever albums I may want. Each photo is a row and has characteristics that are used to determine the place of the photo and blah blah blah.

I was wondering if theres anyway I can use array to dump the photo’s table info, instead of using multiple queries? I don’t know too much about array’s, and I’m hoping theres some way you can identify different values and locate them accordingly.