Count is displaying on the index page also.

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
rnintulsa
Posts: 3
Joined: Thu Sep 11, 2008 4:52 pm

Count is displaying on the index page also.

Post by rnintulsa »

Script URL: http://www.kdesigns.net
Version of script: phpcount12
Hosting company: valueweb.com
URL of phpinfo.php: http://kdesigns.net/phpinfo.php
URL of session_test.php: http://kdesigns.net/counter/counter.php?page=index
What terms did you try when SEARCHING for a solution:
invisible counter showing in index page

Write your message below:
I am new to php, and have gotten this script to work fine,
except that the number of hits displays on my index page.
It also displays on http://kdesigns.net/counter/counter.php?page=index, but how can I hide it on the index page?

This site is in the making and I will put a link to you in appreciation when we get to that part of the making. Not sure where he wants those things yet.

Thank you,
Renee
Renee
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well it was designed to show count on the page where you count it, but if you don't want to show you can try changing this code in counter.php

Code: Select all

echo 'document.write(\''.$count.'\');';
to

Code: Select all

echo '\\ document.write(\''.$count.'\');';
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply