Chuck,
There is a slight error in the instructions (I should have used find/replace).
In my database I call the table ffff_visits while in the modification that I havge posted it is called visits. Hence the statement:
<br />$strQuery = "SELECT COUNT(*) FROM ffff_visits";<br />$sth = $dbh -> do_query($strQuery);<br />list($lngTotalVisits) = $dbh -> fetch_array($sth);<br />
should be in fact
<br />$strQuery = "SELECT COUNT(*) FROM [:"red"]visits[/]";<br />$sth = $dbh -> do_query($strQuery);<br />list($lngTotalVisits) = $dbh -> fetch_array($sth);<br />
Sorry about that everybody. I have ammended the instructions and also added an image file (bluebar.jpg) which needs to be in the images folder or wherever you need it to be (your choice in the script)