Page 1 of 1

Count is displaying on the index page also.

Posted: Thu Sep 11, 2008 6:13 pm
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

Posted: Sat Sep 13, 2008 10:19 am
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.'\');';