yweinba Posted December 31, 2007 Share Posted December 31, 2007 Hello, I have a dating system (PHP/MySQL based) where a user can broswe thorugh search results of people, and then view their personal pages. The database has 2 tables - one with all the peoples' details (which is what will be on their personal pages), and another table that saves details on each users about their use of the program - their last search, their IP etc. I want to add an option that if a user enetered a person's profile, it will show him on the search result that he had already seen his profile. What will be the best way to implement it? I thought about an array and then checking each person on the search results to see if he is in the array, but that would probably take too much time. Joel Quote Link to comment https://forums.phpfreaks.com/topic/83854-sufficient-programming/ Share on other sites More sharing options...
MadTechie Posted December 31, 2007 Share Posted December 31, 2007 what about a table thats contains the UsersID's IE 2 fields VisitorID, UserID Now if my ID was 10 and i visited Users 9,11 & 45, the system add 3 records IE VisitorID, UserID 10, 9 10, 9 10, 45 Quote Link to comment https://forums.phpfreaks.com/topic/83854-sufficient-programming/#findComment-426775 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.