I have a notification page. If you get new notifications (viewed column in the database is "0") then it gets highlighted.
I just need an smart way to know that the user has seen the notifications.
Right now it sets all the user´s notifications to viewed "1" (user has seen them) after the first time you go to "My notifications" page.
How can i know that it has been viewed the right way/best way possible?
I mean it wouldnt be smart to make a function that sets viewed to "1" by clicking on the notification. What if you have like 60s ?
Maybe should i make this click, plus at the top "mark all as seen" or something..?
Any good and logical solution?