|
能不能请各位帮我看一下下面的code 有什么问题??
$filename = $_FILES['uploadedfile']['name'];
$filesize = $_FILES['uploadedfile']['size'];
$filetype = $_FILES['uploadedfile']['type'];
//Add record to the database
$query = "INSERT INTO uploads (file_name, file_size, file_type, description, upload_date)
VALUES('$filename', '$filesize', '$filetype', '$desc',NOW())";
$result = mysql_query($query);
我的table attribute 是 id tinyint(4) autoincrement,file_name varchar(100), file_size int(11), description varchar(100),upload_date date |
|