okay, i think i got my previous question answered, but now i have a new problem, here is my code:
$directory="uploads";
if (!copy($file, "/$directory/$writename")) echo "Could not copy file";
else {echo "file upload successfull"; $doupload="yes"; }
if ($doupload=="yes")
mysql_query("INSERT INTO pictures VALUES
(\"$userid\",NULL,\"$title\",\"$description\",\"$location1\",curdate(),\"0\",\"0\",\"0\",\"$location2\",\"$type1\",\"$type2\"
)");
this is executed, and it tells me the file was uploaded successfully, only problem is the file is never actually copied, the uploads folder remains blank, and i cant find the file anywhere, but there are no errors?