update table with image src on upload
===

I am trying to upload an image and at its src to a table with the field profile_picture. I have searched online and on stack and I am unable to get this code to even add the src to the table. Any help would be appreciated!

    <?php 
    
    include('framework/dbc.php');
    mysql_select_db($db) or die(mysql_error()) ; 
    
    if ($_POST) {
    	$target = "images/profile_users/"; 
    	$target = $target . basename( $_FILES['photo']['name']); 
    	
    	$pic=($_FILES['photo']['name']); 
    	
    	mysql_query("UPDATE `users` SET profile_picture = '$pic' WHERE id = '69'"); 
    	
    	if(move_uploaded_file($_FILES['photo']['tmp_name'], $target)) 
    	{ 
    		echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory"; 
    	} else { 
    		echo "Sorry, there was a problem uploading your file."; 
    	} 
    }
    
    ?>
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>User Profile Upload</title>
    </head>
    
    <body>
    <form enctype="multipart/form-data" action="user_profile.php" method="post">
     Photo: <input type="file" name="photo"><br> 
     <input type="submit" value="Add"> 
     </form>
    </body>
    </html>