Have a look at this page within the PHP Manua (http://uk.php.net/manual/en/features.file-upload.php)

Also, I would advise you to upload your images directly to the server and not to the database. You would be creating unnecessary overhead in your database, because you would have to convert the images to BLOBs, which are very large.