prepare($stmt); $sql->bindParam(':tktuuid', $request['uuid']); $sql->bindParam(':user', $_SESSION['uuid']); $sql->bindParam(':msg', $_POST['msg']); $sql->execute(); } catch (PDOException $e) { $new_ticket_alert = array("danger", "Failed to save update: " . $e->getMessage()); } } else { $new_ticket_alert = array("danger", "You are not authorised to update this request."); header('Location: /view?rid=' . $request['uuid'], true); } } ?>