feat: added adminpanel with overview; added holiday page with functionality; added payout page + functionality; added notification Feature
This commit is contained in:
19
get_notifications.php
Normal file
19
get_notifications.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
require 'config.php';
|
||||
require 'db.php';
|
||||
|
||||
$result = $dbhandle->query("
|
||||
SELECT n.id, u.discord_name, n.message, n.type, n.created_at
|
||||
FROM notifications n
|
||||
JOIN users u ON n.user_id = u.id
|
||||
WHERE n.is_read = 0
|
||||
ORDER BY n.created_at DESC
|
||||
");
|
||||
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
echo "<div class='notif'>";
|
||||
echo "<b>".htmlspecialchars($row['discord_name'])."</b> ";
|
||||
echo htmlspecialchars($row['message']);
|
||||
echo " <small>(".htmlspecialchars($row['created_at']).")</small>";
|
||||
echo "</div>";
|
||||
}
|
||||
Reference in New Issue
Block a user