I need this type of counter because My site is SSL secured. Anyway, I am a newb when it comes to working with PHP and my SQL, so I first want to know if I'm doing this correctly since there are no newb steps in that tutorial.
After adding the MySQL info in the config.php, I ran it through myphpadmin and got a warning. I then ran the other php sections though there and got errors for all of them. I posted the first warning in that thread just yesterday, but since it's so old I doubt I'd ever get a reply.
I ran the table code first and I noticed this at the top:
MySQL returned an empty result set (i.e. zero rows)
ran it again and got an error saying data already exists which tells me that at least the php was in the database.
For the config, I get this:
#1064 - you have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntaxto use near '<?php
$connect = mysql_connect ( 'localhost', 'myusername', 'mypassword' )' at line 1
For the stats, I get this:
ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?php
require_once 'config.php';<?php (X11 times below) (just doing this to save space)
require_once 'config.php';
SQL says
same #1064 message
require_once 'config.php' ' at line 1
lastly for the hit, I get this:
This error looks almost exctly as the one I get for the stats, but it only has 5 rows of
require_once 'config.php';<?php
MySQL says the same thing
Basically all I edited from all of this is the username and password and database in the config script, and yes I did do through all the //comments.
Are you supposed to edit all the areas in orange on the script??
Any help would be greatly appreciated. I'm new here, but this looks like a great site for lots of things. Thanks in advance to everyone participating in these forums.
