header('Content-Type: text/html; charset=tis-620');
echo "";
require_once('db_config.php');
$sql0="select * from $_sch where scode='$sch' ";
$result0=mysqli_query($con,$sql0);
$db0=mysqli_fetch_array($result0);
$sql2="select * from $_act where kp_code='$code' ";
$result2=mysqli_query($con,$sql2);
$db2=mysqli_fetch_array($result2);
$gr=$db2[kp_type];
$mnow=date('m');
$sql="select *,date_format(kd_dob,'%Y%m%d') as bdate from $_data
where kd_code='$code' and kd_sch='$sch' ";
$result=mysqli_query($con,$sql);
echo "