$query="INSERT INTO medical_document SET medical_doc_desc='".$_POST['medical_exam_document']."',medical_doc = '".$data."',medical_doc_name='".$file_name."',medical_doc_type='".$file_type."',emp_id='".$emp_id."',audit_id='".$audit_id."'";
error_log("OPD UPLOAD QUERY::".$query);
// query to insert file in database
//”field_name” is the name of the field where we are uploading pdf files
if(!$result=@mysqli_query($conn,$query)){
$data['status']=500;
error_log("Failed to upload document Exception:".mysqli_error($conn)." Query::: ".$query);