<?php
include('../include/session.php');

$emp_no = $_GET['emp_no'];
$attendance_date = $_GET['attendance_date'];
$absent_reason = $_GET['absent_reason'];
$absent_permission = $_GET['absent_permission'];

$table_name = $_SESSION['db_prefix']."_time_sheet";
$absent_query = "UPDATE $table_name SET absent_reason = '".$absent_reason."', absent_permission = '".$absent_permission."' WHERE personnel_no = '".$emp_no."' AND attendance_date = '".$attendance_date."' " ;
execsql($absent_query);

?>

<script language="javascript" type="text/javascript">
          window.location="recordTimesWizbase.php?p=3&s=";
</script>