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. Quote Link to comment 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.. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.