Update app_functions.php #53
@@ -14,8 +14,8 @@
|
||||
return $usr;
|
||||
}
|
||||
|
||||
function get_my_requests($db) {
|
||||
$ticket_stmt = "SELECT * FROM tickets WHERE created_by=:uuid";
|
||||
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();
|
||||
@@ -24,7 +24,7 @@
|
||||
return $ticket_result;
|
||||
|
Change to Change to `get_my_closed_requests`
|
||||
}
|
||||
|
||||
function get_my_open_requests($db) {
|
||||
function get_my_closed_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']);
|
||||
|
||||
1
app/public/css/bootstrap.min.css
vendored
1
app/public/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user
Append
AND status != 'Closed'to end of statement