From 3d0d3a86106ece4ea298ab2f262b3af5ff8a7728 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Sat, 11 Mar 2017 01:29:13 -0800 Subject: Almost there... --- dash/notif.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dash/notif.php (limited to 'dash/notif.php') diff --git a/dash/notif.php b/dash/notif.php new file mode 100644 index 0000000..68f0282 --- /dev/null +++ b/dash/notif.php @@ -0,0 +1,35 @@ +'; +require('header.php'); +$result = $db->query('SELECT notif.* FROM notif WHERE notif.uid = '.$b_user['id'].' ORDER BY id DESC') or dash_fatal($db->error); +$db->query('UPDATE notif SET notif.seen = 1 WHERE notif.uid = '.$b_user['id']) or dash_fatal($db->error); +?> +
+
+

News

+

Updates for

+
+
+
+num_rows < 1) echo '

No updates are available at this time.

'.PHP_EOL; +else { + while ($row = $result->fetch_assoc()) { + echo '

'.htmlentities($row['text']).'

'.PHP_EOL; + } +} +$result->free(); +?> +
+
+ -- cgit v1.2.3