mindapolis Posted September 2, 2011 Share Posted September 2, 2011 I'm creating a database table that will have a picture field. What should I set the length be for that field? Link to comment https://forums.phpfreaks.com/topic/246292-pictures-field/ Share on other sites More sharing options...
fenway Posted September 2, 2011 Share Posted September 2, 2011 If you mean storing an image in the DB, I'd recommend against it, unless you have a really good reason. Link to comment https://forums.phpfreaks.com/topic/246292-pictures-field/#findComment-1264833 Share on other sites More sharing options...
mindapolis Posted September 2, 2011 Author Share Posted September 2, 2011 That really doesn't answer the question Link to comment https://forums.phpfreaks.com/topic/246292-pictures-field/#findComment-1264840 Share on other sites More sharing options...
sunfighter Posted September 2, 2011 Share Posted September 2, 2011 The answer was DON'T!! put your images in a folder and store the address of the images in your DB. But if your gonna risk losing your images use a blob for the images Link to comment https://forums.phpfreaks.com/topic/246292-pictures-field/#findComment-1264844 Share on other sites More sharing options...
mindapolis Posted September 2, 2011 Author Share Posted September 2, 2011 With a blob type do you have to worry about the length? Link to comment https://forums.phpfreaks.com/topic/246292-pictures-field/#findComment-1264851 Share on other sites More sharing options...
joel24 Posted September 3, 2011 Share Posted September 3, 2011 I would also recommend storing them as images and then just pointing to the image location with the database... seems like you've made up your mind, there is a tutorial here Link to comment https://forums.phpfreaks.com/topic/246292-pictures-field/#findComment-1265020 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.