I'm working on an image gallery system, and I'm starting to work on error checking. One thing I want to do is look through the filenames (stored in the column "filename") and see if the user is trying to upload an existing image.
So basically if 8-06-landscape.jpg is equal to $userfile_name (brought in from a form) it will return an error, and if not it will continue with the file upload.
I am at a complete loss for how to do this.. I'm sure it's simple, but I can't seem to think of an easy way to do it.
Any ideas/suggestions welcome!
Thanks,
-Beth