<?php

include "../../classes/autoload.php";

$record_id  = $_POST['record_id'];
$order_type = str_replace(["'", "\""], "", $_POST['order_type']);
$notes      = str_replace(["'", "\""], "", $_POST['notes']);
$terms      = str_replace(["'", "\""], "", $_POST['terms']);

$db->query("terms", "UPDATE terms SET order_type = '$order_type', notes = '$notes', terms = '$terms' WHERE record_id = '$record_id'");

header("Location: home.php");
exit;