I know the feeling 🙂
I assume you have made a special DIR for storing the uploaded pics... Do you get an error uploading? have you CHMOD 777'd the upload folder?
Apart from that I can't think of anything. here is some uploading code i wrote for something, it works fine, maybe you can get some clues from it:
if(!$description OR !$adder OR $remotefile=="none"){
echo "Sorry, you missed a field on the form. All fields are required.";
}
else{
// Get the file extension. Only .rep files are allowed.
$filebits=explode(".", $remotefile_name);
if($filebits[1]=="rep"){
// Generate a unique filename...
$localfile="C:\inetpub\wwwroot\newsc\replays\$REMOTE_HOST".time().".rep";
//Upload the file
copy($remotefile, $localfile);
// cut off the path info to make a relative file path
$localfile=str_replace("C:\\inetpub\\wwwroot\\newsc\\replays\\","",$localfile);
// Store the path to the file in the DB
$sql="INSERT INTO tgsc_replays VALUES ('', '$adder',".time().",'$description','$localfile','')";
mysql_query($sql);
// Display success/error message
if(mysql_affected_rows($LINK_ID))
echo "Thanks, your replay was added!";
else
echo "Sorry, there was an error, please try again later.";
}
// tell them to get lost if the extension is wrong.
else message("Invalid file type!<br>The file must be a Starcraft game replay file.");
}
}