The data I get for my website is exported from a proprietary directory publishing system. We sell an ad to Customer X. We create an entry in our publishing system, it generates a six digit ad_name. We then exit our publishing, move over to InDesign, manually create an image file, and manually give it a name that MUST include the six digit number. Because when we run pagination for our printed directory, the publishing system LOOKS for that number within the ad image file name.
Having several designers, we need to allow them the flexibility to name a file what ever they like - so long as it includes the six digit number.
To bring the data and images into my PHP/mysql website I have two steps. First I export the data out of our publishing system. Then I take a copy of all the images from the InDesign folder and move them over to the web server. The only thing that RELATES the images to a record from the publishing system is that six digit number. Other than that they are completely separate.
So the idea of putting the file name in the DB - In order to automate that process I would still need the ability to search a file name for the six digit number. And in my big picture, the most flexible option, is to have the website go get the record for customer x, get the six digit number, and then go find the name of the file that contains those six digits.
Hopefully that makes sense and I haven't talked in circles or muddied the water MORE ;-)
Thanks again all of you for your input. !