setting up a database for tracking which users have clicked which links?

后端 未结 3 1559
野性不改
野性不改 2021-01-11 23:20

I\'ll try and elaborate on my problem a bit more.

I recently got an entry-level part time developer position with my university, in efforts to sharpen my dev skills.

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-11 23:39

    You could simply make a PHP script that would retrieve the requested link for them, while also adding a value to MySQL.

    If I were going to do this, I'd probably do something like this:

    Video 1
    

    And in PHP, I'd simply get the resource, type and the userid from the session, put them into the database, then retrieve the resource they were looking for. To track if they watched the video the entire way through, you could use javascript to watch for the event of the player coming to an end, then just use a skin that doesn't have a scrub bar.

提交回复
热议问题