gsaldutti Posted November 10, 2008 Share Posted November 10, 2008 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? Link to comment https://forums.phpfreaks.com/topic/132165-solved-best-way-to-handledisplay-image-files/ Share on other sites More sharing options...
Barand Posted November 10, 2008 Share Posted November 10, 2008 Use an HTML <img> tag <img src='imagefilename'> Link to comment https://forums.phpfreaks.com/topic/132165-solved-best-way-to-handledisplay-image-files/#findComment-686908 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.