-1
$employee_stmt=$con->prepare("INSET INTO employee (emp_name, emp_desig, emp_salary, years_exp, emp_status, emp_adr, city, pin_code, emp_phone, emp_email, emergency_contact, emergency_phone, blood_group, known_health_issue)VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
$employee_stmt->bind_param('ssssssssssssss',$_POST['employee_name'],$_POST['designation'],$_POST['salary'],$_POST['exp'],$_POST['emp_status'],$_POST['address'],$_POST['city'],$_POST['pin'],$_POST['phone'],$_POST['emp_email'],$_POST['emr_contact'],$_POST['emr_phone'],$_POST['blood_group'],$_POST['health_issue']);
請參考https://stackoverflow.com/help/how-to-ask來鼓勵人們回答你的問題。 –
https://stackoverflow.com/a/4488100/4248328 –
我發現有時會出現一個錯誤,如果你傳遞一個字符串而不是存儲該字符串的變量,你試過嗎? –