<?php
$html = new html();
$html->add_styles_page();
$db = new db_safeguard();

$date = date('Y-m-d H:i', strtotime("+ 2hours"));

$db->query("bookings","UPDATE `bookings` SET `notes`='$_POST[notes]',`status`='DONE',`date_done`='$date' WHERE record_id='$_POST[record_id]'");

echo "<script>window.location.href = 'attempt_test.php';</script>";