seadog Posted May 1, 2008 Share Posted May 1, 2008 In the project im working on i want the user to select where they are from based off a flag image. Im quite lost on how this will work. Do i have to put the flag images into the database? Link to comment https://forums.phpfreaks.com/topic/103657-solved-images-and-mysql-databases/ Share on other sites More sharing options...
mwasif Posted May 1, 2008 Share Posted May 1, 2008 There are 3 approaches to this You can save the images in database and retrieve them when needed. Save them on the disk and save its path in database. Save the images at a specific location on disk with a specific naming convention e.g. for USA us.jpg, for UK uk.jpg, for Pakistan .pk. And hard code the path in script and get the 2 digit country code from countries table and display the images Link to comment https://forums.phpfreaks.com/topic/103657-solved-images-and-mysql-databases/#findComment-530886 Share on other sites More sharing options...
seadog Posted May 1, 2008 Author Share Posted May 1, 2008 thank you very much Link to comment https://forums.phpfreaks.com/topic/103657-solved-images-and-mysql-databases/#findComment-531149 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.