SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Dec 2006
    Posts
    430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Visitors to your profile

    Hi Guys,

    i have coded a fairly ok friends type site where you can view profiles etc, what i was wanting to do is for the user to be able to see what users have visited thier profile but i'm not sure how to go about it, i was after some advice on how to go about it, any tips would be appreciated

    Graham

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Create a table with a profile ID column and user ID column. Make them a composite primary key to ensure uniqueness. Insert a row with those IDs whenever a user visits a profile.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •