johnnyblaze9 Posted April 23, 2008 Share Posted April 23, 2008 How can I use my sql database to show user specific pics (John Doe logs in and pictures of his product show on screen) Link to comment https://forums.phpfreaks.com/topic/102565-retrieving-pics-from-a-database/ Share on other sites More sharing options...
ucffool Posted April 23, 2008 Share Posted April 23, 2008 Use the database to store the NAME of the file for that user, then just serve up the saved file. Link to comment https://forums.phpfreaks.com/topic/102565-retrieving-pics-from-a-database/#findComment-525162 Share on other sites More sharing options...
micah1701 Posted April 23, 2008 Share Posted April 23, 2008 save his image somewhere on your site. then save the link to that image in the database that keeps the user log in data. when john doe logs in, look up the link to that image and display it. Link to comment https://forums.phpfreaks.com/topic/102565-retrieving-pics-from-a-database/#findComment-525163 Share on other sites More sharing options...
johnnyblaze9 Posted April 23, 2008 Author Share Posted April 23, 2008 I got that part, but I'm not sure how to display it... Link to comment https://forums.phpfreaks.com/topic/102565-retrieving-pics-from-a-database/#findComment-525175 Share on other sites More sharing options...
micah1701 Posted April 23, 2008 Share Posted April 23, 2008 <img src="<?php=$location_of_image ?>"> Link to comment https://forums.phpfreaks.com/topic/102565-retrieving-pics-from-a-database/#findComment-525191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.