Only show notificaiton in alert window for logged in user and increase the limit from 5 to 8

This commit is contained in:
johnnyq 2024-11-17 15:11:03 -05:00
parent cf6df1c2b1
commit eacb345c70
1 changed files with 2 additions and 2 deletions

View File

@ -65,8 +65,8 @@
$sql_notifications = mysqli_query($mysqli, "SELECT * FROM notifications
LEFT JOIN clients ON notification_client_id = client_id
WHERE notification_dismissed_at IS NULL
AND (notification_user_id = $session_user_id OR notification_user_id = 0)
ORDER BY notification_id DESC LIMIT 5"
AND notification_user_id = $session_user_id
ORDER BY notification_id DESC LIMIT 8"
);
?>