View Full Version : a free counter based in php
clearjade
July 14th, 2001, 14:54
Are there any free external counters based in php? I'm looking for something like BraveNet's counter, except with more stats. I don't want javascript because I can't add that to my footer.js file, without getting errors (Don't ask.) It doesn't really have to php really, I just want a counter with a code that does not involve javascript.
niv
July 14th, 2001, 15:06
can't you just write it in PHP-mySQL?
<?php
mysql_connect("servername", "username", "password");
mysql_select_db("blah");
$counter = mysql_query("select blah2 from blah3");
$counter2 = mysql_fetch_array($counter);
$counter2[blah2]++;
echo ($counter2[blah2]);
mysql_query("update blah3 set blah2=\"$counter2[blah2]\"");
?>
clearjade
July 14th, 2001, 15:15
Meh? I don't know any php or mysql. :D
niv
July 14th, 2001, 15:19
well that block of code should do it.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.