_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! Quote Link to comment 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 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.