รายละเอียดของการตอบ ::
<?
include("connect.php");
$File_Name= $_POST[File_Name];
$File= $_FILES[Files];
$Exchanges= $_POST[Exchanges];
$Date= $_POST[Dates];
$Time= $_POST[Times];
$Read_File= $_POST[Read_File];
$Download= $_POST[Download];
if($File_Name=="" ||$File=="" ||$Exchanges=="" ||$Date="" ||$Time=="" ||$Read_File=="" ||$Download=="")
{
echo "¢éÍÁÙÅÂѧäÁè¤Ãº";
}else{
$strsql="insert into datas values ('','$File_Name','$File','$Exchanges','$Date','$Time','$Read_File','$Download')";
$result=mysql_query($strsql) or die(mysql_error());
$File=$source;
$source = $_FILES['Files']['tmp_name'];
$target = "myfile/".$_FILES['Files']['name'];
move_uploaded_file( $source, $target );// or die ("Couldn't copy");
$type = gettype( $target );
$objDB = mysql_select_db("tot_project");
$strSQL = "INSERT INTO datas ";
$strSQL .="(File) VALUES ('".$_FILES["Files"]["name"]."')";
$objQuery = mysql_query($strSQL) or die(mysql_error());
if($objQuery)
{
echo " <META HTTP-EQUIV='refresh' content='2;URL=index.php'>";
echo "Save Done";
}
else
{
echo "Error Save";
}
}
?>