Scott, the guy that coded this site, has a nice little script for uploading files
http://phphq.net/scripts.php?script=...der#phUploader
its a simple script to get your head around, from there when the file uplaods you would just need to do a mysql insert query and insert the filename, which id assme would already be held as a variable in the script...