And how does that code relate to the file upload code you posted? Does it come before it, after it, somewhere around it?
I’m still confused that you’re trying to access
$_POST['uploadfile'] to store in your database, when it should be one of the
$_FILES array elements that you use, or maybe even
$target_file from your file upload code. Surely you still get an “undefined index” error for that?
Or have you separated things out to an entirely separate form for the CV upload? I don’t “get” how this all links up.