$department = $_POST['Department'];
$street=$_POST['streetaddress'];
$qualification=$_POST['Qualification'];
$Nmc=$_POST['Nmc'];
$day=$_POST['day'];
$month=$_POST['month'];
$year=$_POST['year'];
$date = "{$year}-{$month}-{$day}";
$BloodType=$_POST['Bloodtype'];
$dataFile= $_FILES ['dataFile'] ['name'];
$photo_size=$_FILES['dataFile']['size'];
$photo_type=$_FILES['dataFile']['type'];
if($photo_size<500000 && $photo_type=="image/jpeg" || $photo_type=="image/jpg" || $photo_type=="image/png" || $photo_type=="image/gif"){
$explode_values=explode('.',$dataFile);
$frontuniquename=sha1($explode_values[0].time());
$final_photo_name=$frontuniquename.'.'.$explode_values[1];
if(move_uploaded_file($_FILES['dataFile']['tmp_name'],"../images/Doctor/".$final_photo_name)){
$sql= " INSERT INTO doctor_details (`ContactNumber`, `Qualification`, `Department`, `Nmc_regd_no`, `Did`, `Age`, `weight`, `Bloodtype`, `photo`, `Date`)
VALUES ('$contact_no','$qualification', '$department','$Nmc','$id,'$age','$weight','$BloodType','$final_photo_name','$date')";
}
我的php post值无法传输到mysql数据库。每当我回显get值但无法将值插入mysql数据库时。