Jump to content

[SOLVED] Best way to handle/display image files?


gsaldutti

Recommended Posts

I will have a website that will have image files uploaded to my server. I will keep the actual images stored in a separate directory (not in a database), but I will store info about the files in a MySQL database table.  What info do I need to store in the table so that I can easily call to the separate images files and display them in other areas of the website?  Do I just have one VARCHAR field for "filename" or should I have some other info as well?

 

And once I have that info, what is the best/easiest way to "refer" to those files?  In other words, assuming I had all the proper info in the My SQL table corresponding to the individual image files that are stored in a separate directory, how do I then "grab" one or more of those image files on another page of my website and display them? Are there certain PHP functions to "retrieve and display" image files?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.