diff --git a/app/includes/app_functions.php b/app/includes/app_functions.php index 802045e..4eeb65a 100644 --- a/app/includes/app_functions.php +++ b/app/includes/app_functions.php @@ -24,6 +24,16 @@ return $ticket_result; } + function get_my_open_requests($db) { + $ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid AND status = 'Closed'"; + $ticket_sql = $db->prepare($ticket_stmt); + $ticket_sql->bindParam(':uuid', $_SESSION['uuid']); + $ticket_sql->execute(); + $ticket_sql->setFetchMode(PDO::FETCH_ASSOC); + $ticket_result = $ticket_sql->fetchAll(); + return $ticket_result; + } + function get_subscribed_requests($db) { $requests = array(); $sub_tickets_stmt = "SELECT ticket_uuid FROM ticket_subscribers WHERE user_uuid=:uuid"; diff --git a/app/public/existing.php b/app/public/existing.php index 36b120a..1545ee0 100644 --- a/app/public/existing.php +++ b/app/public/existing.php @@ -36,7 +36,7 @@
- My Open Requests + My Requests