jagguy Posted November 13, 2006 Share Posted November 13, 2006 I want to store an image and an asscoicated text comment in a mysql table, and be able to load them both using php. How do i store this data to be easily read onto a webpage. I was told you can't do this, on another forum. Link to comment https://forums.phpfreaks.com/topic/27079-image-and-text/ Share on other sites More sharing options...
stimpson Posted November 14, 2006 Share Posted November 14, 2006 sure you can do it, there´s a few good short example scripts out there but the big trick is to store your image as binary data (BLOB) in a table. Try to google for "image php mysql". You might though have problems with retrieving the image, it can come out like a page of digits. And when that happends.. still working on that one.. Link to comment https://forums.phpfreaks.com/topic/27079-image-and-text/#findComment-124591 Share on other sites More sharing options...
fenway Posted November 15, 2006 Share Posted November 15, 2006 I generally recommend against storing images in the DB for lots of reasons, unless you need to pull these images from different servers that aren't connected in any way. Link to comment https://forums.phpfreaks.com/topic/27079-image-and-text/#findComment-125111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.