Search code examples
phpmysqlrecording

Record what user has clicked


I want to recognize (with php, mysql) and save which blog entries a user has clicked. Like, I have tech entries, lifestyle entries etc. and I want to record which entries a user is interested in, so that I could provide just these entries for him!

So you know what I mean? I wonder if there are any tutorials or something.

Thanks, dartox.


Solution

  • When they are opening the page, just store the id of that blog entry in a table. Down the road, you can do something as simple as COUNT (*) on that table for that user, sort by category, and find out what category they're mostly interested in. You can get really complex for recommendations, but this is one of the more simpler ways of accomplishing it. Hope that helps!