$d=date("d-m-Y_h:i:s");
$sql="select mam_id,dis_id from tbmamage where mam_id='".$_POST["hdnmam"]."' ";
$query=mssql_query($sql);
$rec=mssql_fetch_array($query);
$old1=explode(".",$_FILES["upload1"]["name"]);
$new1=$d.".".$old1['1'];
$old2=explode(".",$_FILES["upload2"]["name"]);
$new2=$d.".".$old2['1'];
move_uploaded_file($_FILES["upload1"]["tmp_name"],"upload/".$new1);
move_uploaded_file($_FILES["upload2"]["tmp_name"],"upload/".$new2);
$infac="insert into tbstatusfaculty values('".$rec["mam_id"]."','".$rec["dis_id"]."','".$_POST["txtnum"]."','".$new1."','".$new2."','".$_POST["date1"]."','".$_SESSION['session_empid']."')";
$exe=mssql_query($infac);
พออัพแล้วมันขึ้น error แจ้งเตือนว่า
Warning: move_uploaded_file(upload/11-08-2015_12:19:28.doc) [function.move-uploaded-file]: failed to open stream: Invalid argument in C:\AppServ\www\infomed\infomed\acc\faculty.php on line 35
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\php53EE.tmp' to 'upload/11-08-2015_12:19:28.doc' in C:\AppServ\www\infomed\infomed\acc\faculty.php on line 35