<?
session_start();
include"../plg/ses.php";
include"../plg/kon.php";

$id = $_POST['id'];
$nip = $_POST['nip'];
$nama = ($_POST['nama']);
$bos = ($_POST['bos']);
$namax = addslashes($nama);
$unit = $_POST['unit'];
$jab = $_POST['jab'];
$lok = $_POST['lok'];
$kodejab = $_POST['kodejab'];

$sql = "update karyawan set nama='$namax',bos='$bos',nip='$nip',unit='$unit',jab='$jab',kodejab='$kodejab',lokasi='$lok',saverec='1' where id='$id'";
$res = $conn->query($sql);

?>
<script>
parent.keluar();
parent.kembalikan();
</script>
