Jump to content

How to display only new updates (new user photo, new comment,...)


php_guest

Recommended Posts

Please help me if you have any idea how would you solve the following problem:

I want to display to user on home page a notification when a friend of user changes profile. Changes can be new video, new photo, new comment.

 

In each notification will be an information about who did change, what kind of change he/she did and time.

 

I was thinking to put all changes into new table (columns: ID, userID, changeTitle, time) but I don't know how to display only new updates (which weren't displayed in user home page yet), not all of them.

 

Thank you

I found out that I can do this with storing data of previous login and current login together with storing time when the new photo, video, ... were posted.

 

Now I just don't know how to delete all older rows older than previous one, not older than current one. So I need to keep current time and previous one until user log in again.

 

Hope anybody can help me

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.