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

$emp_no = $_GET['emp_no'];
$attendance_date = $_GET['attendance_date'];
$early_reason = $_GET['early_reason'];
$early_permission = $_GET['early_permission'];

$table_name = $_SESSION['db_prefix']."_time_sheet";
$early_query = "UPDATE $table_name SET early_reason = '".$early_reason."', early_permission = '".$early_permission."' WHERE personnel_no = '".$emp_no."' AND attendance_date = '".$attendance_date."' " ;
execsql($early_query);

?>

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