I would store the file path to the image in the database, not the image itself (this would also ease the fact of showing the image at the end), but...
Take a look at those
resources[
^]:
This
article[
^] will show it to you.
PS: the link to google results is simply a link to a google search with the text: store images to mysql database and retriving them as image to my php
Hope this helps.