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
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
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.
yeah that would be a point also see this
http://www.freshdesignweb.com/how-to-count-visitors-using-php-mysql-tutorial.html
thanks
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.