Reputation: 31
I have created a form that allows users to upload an image to a folder in the server. How do I insert the image into the database? I have created a table name called upload in the database named blog and a row called image with the value MediumBLOB.
If the above sounds illogical, how do i call the image from the server dynamically?
Thank You.
Upvotes: 1
Views: 532
Reputation: 168988
See this howto. However, you should really consider using parametrized queries instead of passing the query arguments inline.
Upvotes: 1