I am using PHP MySQL with Dreamweaver cs and create Photo Album
now i want to create function in my photo album
" No of User View By Photo " count Photo View
if some one know please tell me
Thnks in advance
Regards
Hi,
If you want to count the Number of users who visited your Album images,You can create a hit counter to track them.
For example,Lets say this URL.
http://www.albumdomain.com/view_album.php
Here users comes to view_album.php page and here you have list all the images in album as thumnails.
Once user click the one of the thumbnails you should call for another php script.
Example:
http://www.albumdomain.com/enlarge.php?imageID=1001
this enlarge.php is responsible for display the Original view of the image and at the same time you have to update the number of visits to that image ID.
So create a Table for the hit counter.
exapmle:
record_d - image_id - hits
1 - 1001 - 20
2 - 1005 - 80
Based on the image number you can update the hits column for each visit.