03-09-2008, 02:16 PM
| THREAD STARTER
#1 (permalink)
|
| First Time Poster! Join Date: Mar 2008
Posts: 1
| Uploader I need help with this stupid uploader script. It won't let me access any of my functions. I am uploading through a flash uploader reference. Wat is wrong? PHP Code: require_once('functions/config.function.php');
????: NamePros.com http://www.namepros.com/programming/442405-uploader.html $zidiansessionid = $_COOKIE['zidiansessionid'];
$file_ext = substr($_FILES['Filedata']['name'], strrpos($_FILES['Filedata']['name'], '.') + 1);
$file_path = './avatars/'.$_COOKIE['zidiansessionid'].'.'.$file_ext;
move_uploaded_file($_FILES['Filedata']['tmp_name'],$file_path);
$updateAvatarFormatQuery = "UPDATE `members` SET `avatarformat`='".mysql_real_escape_string($file_ext)."' WHERE `sessionid`='".mysql_real_escape_string($_COOKIE['zidiansessionid'])."'";
????: NamePros.com http://www.namepros.com/showthread.php?t=442405 mysql_query($updateAvatarFormatQuery) or die("Unable to process avatar update!");
|
| |