<?php


include('connect.php');
$ptid=$_POST['ptid'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$lname=$_POST['lname'];
$email=$_POST['email'];
$address=$_POST['address'];
$contact=$_POST['contact'];
$age=$_POST['age'];
$doj=$_POST['doj'];


$sql="insert into ptmember (ptid,fname,mname,lname,email,address,contact,age,doj)values('$ptid','$fname','$mname','$lname','$email','$address','$contact','$age','$doj')";

$result=mysqli_query($con,$sql);

if($result)
	
	{
		echo "Records Inserted Successfully";
	}
	else
	{
		echo "Records Not Inserted";
	}
	?>