Jump to content

Log what users do


Norsk.Firefox

Recommended Posts

Hello

I want to log what the users of my site does. I want to insert a post in the database when the user posts a comment to another's blog or anything else he does.

 

So, my thinking were: Make a database named `history`, fields `id` INT, `user_id` INT, `type` INT (What the user did), val1 INT (for example the ID to the comment he/she wrote), val2 INT, val3 INT.

 

but the problem I've met so far is that if I want to show 50 entries in the database `history` I have to create another query for every result.

 

A picture to illustrate if it's easier(?).

Untitled-1.jpg

 

Anyone have a way to do this easier/better/faster?

Link to comment
https://forums.phpfreaks.com/topic/85240-log-what-users-do/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.