i have problem with following script. The photo doen't get uploaded. i think everything is right. Does anybody know the problem and the solution. The same type of script worked well in another php page. Please help me.
//echo $mail." ".$eventname." ".$organizer." ".$date." ".$venue." ".$body;
mkdir("member/".$mail."/eventphoto",0777); // the chmod is not working do you know why??
$upload_dir = "member/".$mail."/eventphoto/";
$photo = $_FILES['upfile']['name'];
$_SESSION['photoupload']= "photo is successfully uploaded";
$query = "insert into event values ('','$photo','$mail','$eventname','$organizer','$date','$venue','$body')";
else $_SESSION['photoupload']= "photo couldn't be uploaded";