here is the basics.
I have a gallery that is run from a database. the DB table only has some basics and a file name. I will be building a edit page so that you can easily add new images to the gallery. I will upload the image through FTP.
I would like the edit page to grab the file list from the table, and scan the files on the server. any img that is NOT in the database will be the ones that show.
Now I know I could just loop through the directory and check each filename in the database... but whats the best way? Should I create an array of the files, then just loop through that? two arrays?
Thanks!![]()




Reply With Quote