woodsy130 Posted October 24, 2011 Share Posted October 24, 2011 I am creating a website that will use static images that wont change on certain pages, similar to the way clothing stores do with pictures of their clothes. What is the best way to do this? Do i store each image in a directory and store the imagepath in the database? and then use html to fetch the image? Also, i want the user to click on each image to display more information (eg. clicking on an image of a jumper to display more information on it such as the size etc). Will I have to create a new file for EVERY image I use?? or is there a more efficient way of doing this? PLS PLS PLS HELP!!! Thanks Link to comment https://forums.phpfreaks.com/topic/249687-using-images-with-php-and-sql/ Share on other sites More sharing options...
TOA Posted October 25, 2011 Share Posted October 25, 2011 Here's how I would do it Product Table Name, ImgSrc, Description Then you can use php to grab the info and construct the link. Maybe even a jquery modal window for the description when the user clicks on it. Just my two cents Link to comment https://forums.phpfreaks.com/topic/249687-using-images-with-php-and-sql/#findComment-1282211 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.