astralaaron Posted January 30, 2010 Share Posted January 30, 2010 I have a program that lists news topics you can click and read.Just wondering if anyone has any good ideas on how I could keep track of who has viewed each ad, so I can highlight new ones, and delight previously read topics? Link to comment Share on other sites More sharing options...
Synook Posted January 31, 2010 Share Posted January 31, 2010 You'll need some sort of way of tracking all your users (IPs, usernames, cookies, etc.), and then a relational table that matches the user to topics they've already read. Then you query that whenever you retrieve the topics and only show those that aren't listed in the relational table under their identifier. Link to comment Share on other sites More sharing options...
astralaaron Posted January 31, 2010 Author Share Posted January 31, 2010 You'll need some sort of way of tracking all your users (IPs, usernames, cookies, etc.), and then a relational table that matches the user to topics they've already read. Then you query that whenever you retrieve the topics and only show those that aren't listed in the relational table under their identifier.yeah It will have to be IP's or cookies then. thanks. Link to comment Share on other sites More sharing options...
Synook Posted January 31, 2010 Share Posted January 31, 2010 Just remember that people's IPs change, and cookies get deleted. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.