0

so i am trying to count view that enter on zoom.php page. also if user keep of refreshing his page than dont add views and i dont want to use function.

i want to store view on my database

image->image_id,user_id,image,image_name,image_view

3
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by code739
0

Have you any knowledge of php sessions? If so, create a session variable for every user that logs in, adding up to the counter stored in your database. Assing a timeout period for the session, so that once the user has been away for that time period (say, 30 minutes), another logon to the site will count as a new visit.

0

Also, you can refer to this post for more info on setting up a visit counter (contains information about website, address, etc.)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.