diff --git a/app/includes/header.php b/app/includes/header.php
index eca4a77..b89d0a3 100644
--- a/app/includes/header.php
+++ b/app/includes/header.php
@@ -67,14 +67,3 @@
-
-
-
- " . $alert['msg'] . "
-
- "); }
- ?>
-
diff --git a/app/public/new.php b/app/public/new.php
index 773a57b..50b0f9f 100644
--- a/app/public/new.php
+++ b/app/public/new.php
@@ -14,7 +14,7 @@
$sql->execute();
} catch (PDOException $e) {
// echo("Error:
" . $e->getMessage() . "
");
- create_alert("danger", "SQL Error: " . $e->getMessage());
+ $new_ticket_alert = array("danger", "SQL Error: " . $e->getMessage());
}
// Get ticket UUID
@@ -28,7 +28,7 @@
$tkt_uuid = $tkt_result['uuid'];
} catch (PDOException $e) {
// echo("Error:
" . $e->getMessage() . "
");
- create_alert("danger", "SQL Error: " . $e->getMessage());
+ $new_ticket_alert = array("danger", "SQL Error: " . $e->getMessage());
}
// If file is uploaded, process that
@@ -47,7 +47,7 @@
$sql->execute();
} catch (PDOException $e) {
// echo("Error:
" . $e->getMessage() . "
");
- create_alert("danger", "SQL Error: " . $e->getMessage());
+ $new_ticket_alert = array("danger", "SQL Error: " . $e->getMessage());
}
}
@@ -62,6 +62,17 @@
+
+
+ " . $new_ticket_alert[1] . "
+
+ "); }
+ ?>
+
+