0
$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']);
Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98
gotocartik
  • 157
  • 1
  • 8

1 Answers1

0

Looks like your statement can not be prepared. You should check SQL for errors. (For example in post INSET used instead of INSERT).

Deceased
  • 86
  • 5