claire Posted June 19, 2007 Share Posted June 19, 2007 why images from my database not apparing on my pagethe discription is tho......im puzzled ??? Link to comment https://forums.phpfreaks.com/topic/56216-bwhy-images-from-my-database-not-apparing-on-my-pageb/ Share on other sites More sharing options...
claire Posted June 19, 2007 Author Share Posted June 19, 2007 excuss my spelling im gone brain dead from this Link to comment https://forums.phpfreaks.com/topic/56216-bwhy-images-from-my-database-not-apparing-on-my-pageb/#findComment-277660 Share on other sites More sharing options...
Wildbug Posted June 19, 2007 Share Posted June 19, 2007 image.php $result = mysql_query('SELECT image,type FROM images WHERE id=' . $id) or die (mysql_error()); list($image,$mimetype) = mysql_fetch_row($result); header("Content-type: $mimetype"); fpassthru($image); exit; page.php <html> <body> <img src="image.php?id=1"> </body> </html> ??? Link to comment https://forums.phpfreaks.com/topic/56216-bwhy-images-from-my-database-not-apparing-on-my-pageb/#findComment-277677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.