Still counting clicks after making changes above. I went back and tried a few other things and got it fixed where it is only counting visits to the main page. Here's the changes below.
I removed :
$result = mysql_query("SELECT count FROM mycounter");
$mycounter = mysql_result($result, 0) + 1;
$result = mysql_query("UPDATE mycounter SET count = count + 1");
from my phpinclude template.
Open index.php:
find around line 69
$birthdaybits="";
just above it insert
$result = mysql_query("SELECT count FROM mycounter");
$mycounter = mysql_result($result, 0) + 1;
$result = mysql_query("UPDATE mycounter SET count = count + 1");
and that will fix it to where it only counts the index page.
You can now insert:
$mycounter
Wherever you want your count to appear.
|