18 lines
550 B
PHP
18 lines
550 B
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('log_entry.php');
|
|
|
|
$dob = date('Y-m-d', strtotime($_POST['dob']));
|
|
$q_patient_name= $_POST['q_patient_name'];
|
|
$patient_category= $_POST['patient_category'];
|
|
$email= $_POST['email'];
|
|
|
|
|
|
$query = "insert into patient_master set patient_name='$q_patient_name',dob = '$dob',email_id = '$email',patient_cat_id = '$patient_category',modified_by = '".$_SESSION['user_id']."'";
|
|
|
|
error_log("insert patient".$query);
|
|
|
|
if (!$result = @mysqli_query($conn,$query)) {
|
|
exit(mysqli_error($conn));
|
|
}
|
|
?>
|