Hey there,
You cant use that variable name in the value because the variable won't exist until the page has already been sent. You can use the name of the field where the name of the file is being uploaded to create the variable for your mysql to handle. For instance, if the name of the file is being entered into the field 'upload1', then that is the object you want to use.
<?php if(isset($_POST['upload1'])) { $fileName = $_POST['upload1'];} ?>
Put that above your Mysql statement where you have the UPDATE or INSERT query (like at the top of the page if you like) and in the query where you have the list of database colums and their values being entered ensure that the value for your file name equals $fileName.
For example, SET serverFileName='$fileName'
This is how I would do it, but the guys at WA would probably prefer their software was doing it for you and may have another way... good luck.