+ 1

How to make a unique hit counter in PHP?

I want to count the number of likes hit by the users wrt 'user_id' from my 'users' table? English is bad but I guess you understand what I want to say!

5th Feb 2018, 7:08 PM
Pukhramabam Prameshwormani Singh
1 Réponse
+ 2
From my understanding, you have a button that you can click on to "like" a post, article, etc... If so, you can easily just edit the "like" button function to include increasing the "like count" of the user who clicked it. While it's already accessing the database, simply have it check your session (or whatever) to grab the user's ID and then increase their individual "like count." Get what I mean?
5th Feb 2018, 7:29 PM
Fata1 Err0r
Fata1 Err0r - avatar