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