huntrguy102 Posted March 17, 2010 Share Posted March 17, 2010 I have a site with books in a database. I also have the names of the books corresponding with the I.D. number of the book in the database (i.e. 001.jpg = Book 1). So my question is, is their an way to post the pictures next to the information of the books on a page. I already have it so the information of the books (title, author, genre, etc.) are posted on a page, I just need the pictures (or thumbnails) next to them to show up. Any help would be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/195611-easy-way-to-post-pictures-with-php/ Share on other sites More sharing options...
fenway Posted March 22, 2010 Share Posted March 22, 2010 I don't follow... why not join the tables? Quote Link to comment https://forums.phpfreaks.com/topic/195611-easy-way-to-post-pictures-with-php/#findComment-1030171 Share on other sites More sharing options...
huntrguy102 Posted March 29, 2010 Author Share Posted March 29, 2010 well the problem I am having is that I don't know how to have pictures in a database and then use php to post the images. Quote Link to comment https://forums.phpfreaks.com/topic/195611-easy-way-to-post-pictures-with-php/#findComment-1033547 Share on other sites More sharing options...
GoneNowBye Posted April 1, 2010 Share Posted April 1, 2010 Just echo it, make sure you're storing them in a binary colomn - Blob, i'd also store a mime type: in php: " header('content-type: img/jpg'); echo($image_binary_data); " sorted Quote Link to comment https://forums.phpfreaks.com/topic/195611-easy-way-to-post-pictures-with-php/#findComment-1035349 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.