Jump to content

Archived

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

ksumanth

counters in php

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

Share this post


Link to post
Share on other sites

Suppose i am viewing sanju profile 2 or 3 times it should count only one time.

Why? Be very specific.

Share this post


Link to post
Share on other sites

That sounds nothing like what you originally said.

Share this post


Link to post
Share on other sites

What are the circumstances that determine when it counts and doesn't count?

Share this post


Link to post
Share on other sites

Well i cant understand why is this happening.

 

 

______________

Gradial

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I rec the best approach is a cookie or a database table... the second being more robust

Share this post


Link to post
Share on other sites

Notice, folks, that the thread is from January. Fehnris and Gradial both bumped the thread for some reason.

Share this post


Link to post
Share on other sites

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