Well, here are the changes to my code...
<?php
$uploaddir = '/homepages/12/d114244980/htdocs/MaximumDirt/images/drivers/';
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
$picname = $_FILES['userfile']['name'];
$random=rand(1000,9999);
$newpicname=$random.$picname;
move_uploaded_file($_FILES['userfile']['tmp_name'], $newpicname);
$sql_update = mysql_query ("UPDATE driver_profiles SET pic1='".($newpicname)."'");
?>
It does add the random number in front and $newpicname gets updated in the database, but now the file does not get uploaded. Any thoughts?
EDIT: I just found the uploaded file in the root directory where the php file is, not the upload dir I set. This changed as it was placing it in the directory, so it looks like something with the path is not working.
GOT IT!
<?php
$uploaddir = '/homepages/12/d114244980/htdocs/MaximumDirt/images/drivers/';
$picname = $_FILES['userfile']['name'];
$random=rand(1000,9999);
$newpicname=$random.$picname;
$uploadfile = $uploaddir.$newpicname;
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile);
$sql_update = mysql_query ("UPDATE driver_profiles SET pic1='".($newpicname)."'");
?>