Re: check unread messages in a forum
| From: | Stas Maximov | Date: | Mon, 26 Aug 2002 12:44:32 +0000 |
| Subject: | Re: check unread messages in a forum | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114132@lists.php.net to get a copy of this message | ||
Hi,
Just store the user's last log-in date/time either in the database or in
cookie. On the next log-in "select * messages where creationDate >
$userLastLoginDate" and highlight those selected. It won't work for every
particular unread message, but I doubt if one needs to be that much
specific.
HTH, Stas
----- Original Message -----
From: "Charlotte" <evelone@worldonline.se>
To: <php-general@lists.php.net>
Sent: Monday, August 26, 2002 1:04 PM
Subject: [PHP] check unread messages in a forum
> I have made a forum in PHP, and the users are logged in using cookies. I
> want all new threads (and if there are new replies in an old thread) to be
> highlight or something like that.
>
> How do I check if a user has read a message or not?
>
>
>
> /Charlotte
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>