<?
session_start();
if(strlen($brcode)<=0)
{
 print "<script> alert('Session timed out'); parent.document.location='../ind.php'; </script>";
 return;
}
include("../opendb.php");


$dob=$y.'-'.$m.'-'.$d;
$doj=$yj.'-'.$mj.'-'.$dj;
$probdate=$py.'-'.$pm.'-'.$pd;
$doconf=$cy.'-'.$cm.'-'.$cd;
$doret=$ry.'-'.$rm.'-'.$rd;
$domarg=$marry.'-'.$marrm.'-'.$marrd;
$dobactual=$yac.'-'.$mac.'-'.$dac;
$dobw=$wy.'-'.$wm.'-'.$wd;
$dobc1=$cy1.'-'.$cm1.'-'.$cd1;
$dobc2=$cy2.'-'.$cm2.'-'.$cd2;
$dobc3=$cy3.'-'.$cm3.'-'.$cd3;


$sql="update empmaster set trainee='$trainee',brcode='$brcode',divi='$divi',empname='$empname',"
."sex='$sex',dob='$dob',fname='$faname',peraddr='$peraddr',praddr='$praddr', design='$design',doj='$doj',probdate='$probdate',doconf='$doconf'"
.",doret='$doret',esi='$esi',pf='$pf',bgrp='$bgrp',drvno1='$drvno1',drvdate1='$drvdate1',drvtype1='$drvtype1', drvno2='$drvno2',".
"drvdate2='$drvdate2',drvtype2='$drvtype2', drvno3='$drvno3', drvdate3='$drvdate3', drvtype3='$drvtype3', insurname1='$insurname1',insurdate1='$insurdate1',"
."insurtype1='$insurtype1',insurname2= '$insurname2', insurdate2='$insurdate2', insurtype2='$insurtype2', insurname3='$insurname3',insurdate3='$insurdate3',"
."insurtype3='$insurtype3', insurname4='$insurname4',insurdate4='$insurdate4', insurtype4='$insurtype4',quali1='$quali1',course1='$course1',"

."sub1='$sub1', mark1='$mark1',quali2='$quali2', course2='$course2', sub2='$sub2', mark2='$mark2',quali3='$quali3', course3='$course3',sub3='$sub3',"
."mark3='$mark3', quali4='$quali4',course4='$course4', sub4='$sub4', mark4='$mark4', mstatus='$mstatus',domarg='$domarg', nom='$nom',"
."nof='$nof', resph='$resph',mob='$mob',email='$email', br='$br',remark='$remark',dept='$dept', empid='$empid', dobactual='$dobactual',"

."icename1='$icename1', icerel1='$icerel1',iceaddr1='$iceaddr1', icephone1='$icephone1', icemob1='$icemob1', icename2='$icename2',"

." icerel2='$icerel2', iceaddr2='$iceaddr2',icephone2='$icephone2',icemob2='$icemob2', pan='$pan',term_date='$term_date' , lop='$lop', apinpay='$apinpay',grp='$grp', oallow='$oallow',emtype='$emtype',incmonth='$incmon',wifename='$wifename',dobw='$dobw',dobc1='$dobc1',dobc2='$dobc2',dobc3='$dobc3',c1name='$childname1',c2name='$childname2',c3name='$childname3',bnkac='$bnkac',ptax='$ptax' where empcode='$empcode'";

mysqli_query($db,$sql) or die(mysqli_error());
print "Data has been Changed";
include("seaemp.php");
 ?>
