Jump to content

see individual user views...


Recommended Posts

i have videos that multiple users can view.... for each video i'd like to track how many times each user has viewed that specific video...


i'm not sure if i'm on the right track but... i set up a table in the database with two fields...user_id and vid_id... now everytime a user views the vid... the table updates with the vid_id and the user_id... this is where I am stuck...


I would like to select all videos in the table and count how many times each user is matched with the same video id to get the number... but how could I do this for all of the users?


If anyone has any ideas it is appreciated...and if someone thinks there is a better way to accomplish this that would be awesome too.. thanks!!


Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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.