_cornex_ Posted October 11, 2013 Share Posted October 11, 2013 Hello! I want to upload a image from a form into blob in database, i have tried alot but nothing work. If i use normal query, i don't have the file in database. Can someone help me out? Thanks on advance! Link to comment https://forums.phpfreaks.com/topic/282887-blob-query-help-please/ Share on other sites More sharing options...
Ch0cu3r Posted October 11, 2013 Share Posted October 11, 2013 When you upload images, don't save the actual image into the database. Only save the filepath (where you uploaded the image too) in the database. When you query the database to display the image you'd do something like echo '<img src="'.$row['image_path'].'" />'; Saving the actual image into the database makes things alot more complicated. Uploading the file and storing on the file system and then linking it in the database is a hell of a lot simpler Link to comment https://forums.phpfreaks.com/topic/282887-blob-query-help-please/#findComment-1453548 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.