Ok -
So after your browser has uploaded the file (i'm guessing), you will want to get the filename of it, then save that filename to MySQL.
Well - I'm not writing all the code for you - but here are some pointers.
1, If you are uploading a file via a web browser, then the file exists for as long as your script is running. PHP then performs a clean up and your file is destroyed. To overcome this, you have to copy the file out of the temporary directory and (optionally) give it a name.
2, To get the filename part of a complete path and filename string, use
$strFilename = basename($strPath);
$strFilename will then contain only the filename from your path, and all path information will be discarded (although it is still available from the $strPath variable).
3, You need to have a MySQL table to put the filename into. You will probably want a primary key (especially if you allow duplicate filenames in your table), and a filename column (I assume the path is consistent for all files).
4, Insert a row into your table i.e.
$result = mysql_query('INSERT INTO files (filename) VALUES ("' . $strFilename . '")');
or something like that anyhow.
So - hope that helps you 🙂