Jump to content

counters in php


ksumanth

Recommended Posts

hello friends,

 

In my website one webpage having details like name,age,height,weight and ..

In bottom i use "ahref" ViewFullprofile.

If i click viewfullprofile it should count the numbers.

Suppose i am viewing sanju profile 2 or 3 times it should count only one time.And if i click any other profile "Manju" it should count

 

Can any one help me out

 

Regards

sumanth

Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

If you don't want a single person viewing a profile to be counted twice you can either store each view in a database (works with logged in users across browsers and machines) or store who's been looked at in a cookie (works without requiring a login but only within individual browsers so if the user looks at the office and home he is counted twice) or you can use both mechanisms if you have both logged in and non-logged in users.

Link to comment
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.