473,322 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Creating a Hit Counter for Image Album

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
Jun 30 '07 #1
6 2482
ak1dnar
1,584 Expert 1GB
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.
Jun 30 '07 #2
kovik
1,044 Expert 1GB
Yerp. ^_^

Assuming you're images are already governed by a database, add a 'views' field to the table, and just query an update.

Expand|Select|Wrap|Line Numbers
  1. UPDATE `imagesTable` SET `views` = `views` + 1;
Jun 30 '07 #3
Many Thanks for your replay
but my problem is not solve
i am not professional progeammer please tell me step by step
how to create hit counter for image album with MYsql php Dreamweaver Cs
waiting for your quick responce

thanks in advance
SAQ
Jul 4 '07 #4
dafodil
392 256MB
Many Thanks for your replay
but my problem is not solve
i am not professional progeammer please tell me step by step
how to create hit counter for image album with MYsql php Dreamweaver Cs
waiting for your quick responce

thanks in advance
SAQ
Man I think you should study html and php.....

You are already using Dreamweaver so I think it will be easy to design your pages using that...

Check this site so that you can learn the fundamentals:
w3schools.com
Jul 4 '07 #5
kovik
1,044 Expert 1GB
Don't let Dreamweaver cripple you! Dreamweaver should be treated as mixture of an FTP and text editor. Anything beyond that is too much dependence. The solutions will become more obvious as you learn more about programming.
Jul 4 '07 #6
Atli
5,058 Expert 4TB
Don't let Dreamweaver cripple you! Dreamweaver should be treated as mixture of an FTP and text editor. Anything beyond that is too much dependence. The solutions will become more obvious as you learn more about programming.
I agree. I love Dreamweaver, but only as a great editor.
Do not get dependent on the wizards or the fancy design stuff. At least not without knowing how to do it without them.
Jul 4 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: GAR | last post by:
I recently set up ampache so I can have an mp3 server. I dont like how they display album covers so I decided to try and change it a little. Instead of taking the album cover from the mp3s...
5
by: Haydnw | last post by:
Hi, I have the code below as code-behind for a page which displays two images. My problem is with the second bit of code, commented as " 'Portfolio image section". Basically, the SQL query gets...
1
by: ltt19 | last post by:
Hi everyone! I want to do da Image gallery using just the datagrid, this one will dilpays only images, no text, that means that it will have about 4 Collumns that will displays just images from...
3
by: AJM | last post by:
VS 2002, VB, WEB PAGE, XP PRO I'm trying to create a photo album on my web page or create thumbnails of pictures and add them to image box click on thumbnail and goto larger version of picture. ...
7
by: David Thielen | last post by:
Hi; Is there a way to embed images in the response rather than writing them to disk and having an <img ...> tag? And if so, how is it done and what browsers support it? -- thanks - dave
6
by: Bruce | last post by:
Although I have quite a bit of WinForms experience, I am new to ASP.NET. So don't be surprised by the elementary question. :) I am creating a webpage with a dropdown list that allows the...
2
by: David Griffiths | last post by:
Hi All Using VB 2005 I have been tasked with creating simple Photo Album page on our local intranet server that can display Thumbnails and then the full picture once the thumbnail is clicked...
1
by: Oscar | last post by:
Hi, Is there a way to extact the album cover image that is shown in WMP 11. I Would like to have a cover.jpg file in each album folder so I'm able to make a backup of all mp3's as well as all...
2
by: djpaul | last post by:
Hello, I have this program and when i want to load pictures it crashes at the form.showdialog()....??? Here it goes: Private Sub CmbPath_SelectedIndexChanged(ByVal sender As Object, ByVal e As...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.