Page 1 of 1

Using CCount to count no. of file accesses.

Posted: Sun Oct 03, 2010 8:51 pm
by Penmere
My website 'www.swtw.co.uk' consists of lines like the following:-
<pre><a href="http://www.swtw.co.uk/AllThrough.mp3">All through the night</a></pre>
and clicking on the text 'All through the night' will cause the file 'AllThrough.mp3' to be played.
I tried inserting the code 'ccount/click.php?id=1' as shown here:-
<pre><a href="http://www.swtw.co.uk/ccount/click.php? ... h.mp3">All through the night</a></pre>
but that resulted in a message about invalid ID numbers when I tried to run the file. I tried other positions for the code but to no avail . No clicks were ever recorded, although I added the links into the admin panel OK. I would be very grateful if someone could tell me where I am going wrong.
Best regards

Re: Using CCount to count no. of file accesses.

Posted: Mon Oct 04, 2010 3:03 pm
by Klemen
This is the correct code for your file:

Code: Select all

<pre><a href="http://www.swtw.co.uk/ccount/click.php?id=4">All through the night</a></pre>

Re: Using CCount to count no. of file accesses.

Posted: Mon Oct 04, 2010 8:36 pm
by Penmere
Thanks Klernen for your response. I was putting the click.php?id= code into the admin panel links as well.
I will set up all the links now starting from 1. I will be buyin you a beer.