How can I display notification “a new reply to your question” using ajax,php,mysql?
I am getting trouble even starting how to code.
As soon as somebody replies,I will have to check if the user has seen the page or not.
And display notification until the user has seen the page.
How can I start doing this, please give me a hint atleast.
Ok, I made a table that will contain the notification.
In this table the questionid,replyid,and the userid of person who asked the question is stored.
But I again ran into same problem. How will I know that the user who had asked question HAS NOT SEEN THE ANSWER PAGE?
Like stackoverflow, this site keeps on notifying me until and unless I see the answer page…how they do it? I searched in google many times like ‘reply notification’ or ‘new answer notification ‘ etc etc but everybody is interested in displaying signin welcome notification or something like that.
try to set cookie function onLoad event of the page, and when the user replies try to test if cookie exists and after the response you clean this cookie