there is no way to actually add the image to the database.
what you have to do is have a table that saves the image names. your php script will upload the file to a specified folder and add the record with the file name to the database.
so you will need something like this to add an image
$IMAGE_PATH="/path/to/the/image/"
$IMAGE_URL= "
http://www.website.com/image/";
upload the image to
$IMAGE_PATH.$file_name
then query the $file_name for the image that you want to display
<img src='<? echo $IMAGE_URL.$file_name; ?>'>
do a google search for php file uploads. there are plenty of examples. the example may not include database inserts, but after the file is successfully uploaded, do a query something like this
"insert into images (file_name) values ('$file_name')";
that should be enough info to get you going