0

Hi frnds..
Here i am developing a portal like orkut..
i want to display recently visited users of my profile...whats the procedure...
Is there anybody having code plz send me...
Thanks in Advance...

4
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by architact
0

I don't have the code but i can tell you what's the logic behind it i think there is a table in your database in which you are storing your user login or other information, in that table create a new column and update that column on page load with the users name or id on that time. and when you want to display the recent visitors display the 10 results and select them as no one gets repeated.

0

Of course that depends on how far back you want to go, you may want to create a link table to link users to users in the form of visits. So this table would have 4 columns:
uservisitspk, primary key
userpk, refers to the user
visiteduserpk, refers to the visited user
timestamp, timestamp

0

When someone clicks on profile link , get the user id fron session information and store it in database.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.