PHP: idea of making viewed notification
<p>I have a notification page. If you get new notifications (viewed column in the database is "0") then it gets highlighted.</p>

<p>I just need an smart way to know that the user has seen the notifications.</p>

<p>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.</p>

<p>How can i know that it has been viewed the right way/best way possible?</p>

<p>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 ?</p>

<p>Maybe should i make this click, plus at the top "mark all as seen" or something..?</p>

<p>Any good and logical solution?</p>
