@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_my_open_requests($db) {
|
function get_my_open_requests($db) {
|
||||||
$ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid" AND status != 'Closed';
|
$ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid AND status != 'Closed'";
|
||||||
$ticket_sql = $db->prepare($ticket_stmt);
|
$ticket_sql = $db->prepare($ticket_stmt);
|
||||||
$ticket_sql->bindParam(':uuid', $_SESSION['uuid']);
|
$ticket_sql->bindParam(':uuid', $_SESSION['uuid']);
|
||||||
$ticket_sql->execute();
|
$ticket_sql->execute();
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
if ($is_authorised == true) {
|
if ($is_authorised == true) {
|
||||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
try {
|
try {
|
||||||
$stmt = "UPDATE tickets SET status='Closed' WHERE uuid=:uuid";
|
$stmt = "UPDATE tickets SET status= 5 WHERE uuid=:uuid";
|
||||||
$sql = $db->prepare($stmt);
|
$sql = $db->prepare($stmt);
|
||||||
$sql->bindParam(':uuid', $request['uuid']);
|
$sql->bindParam(':uuid', $request['uuid']);
|
||||||
$sql->execute();
|
$sql->execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user