ksumanth Posted January 4, 2013 Share Posted January 4, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/ Share on other sites More sharing options...
requinix Posted January 4, 2013 Share Posted January 4, 2013 Suppose i am viewing sanju profile 2 or 3 times it should count only one time. Why? Be very specific. Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1403165 Share on other sites More sharing options...
ksumanth Posted January 4, 2013 Author Share Posted January 4, 2013 because 30 profiles is completed i should deactivate sanju profile Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1403207 Share on other sites More sharing options...
requinix Posted January 4, 2013 Share Posted January 4, 2013 That sounds nothing like what you originally said. Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1403234 Share on other sites More sharing options...
Fehnris Posted April 4, 2013 Share Posted April 4, 2013 What are the circumstances that determine when it counts and doesn't count? Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1422873 Share on other sites More sharing options...
Gradial Posted June 13, 2013 Share Posted June 13, 2013 Well i cant understand why is this happening. ______________ Gradial Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1435669 Share on other sites More sharing options...
davidannis Posted June 14, 2013 Share Posted June 14, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1435897 Share on other sites More sharing options...
louie35 Posted June 14, 2013 Share Posted June 14, 2013 I rec the best approach is a cookie or a database table... the second being more robust Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1435963 Share on other sites More sharing options...
requinix Posted June 14, 2013 Share Posted June 14, 2013 Notice, folks, that the thread is from January. Fehnris and Gradial both bumped the thread for some reason. Quote Link to comment https://forums.phpfreaks.com/topic/272683-counters-in-php/#findComment-1436004 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.