Rank: Master
Rating: 0%, 0 votes
These lines
mysql_connect(''$host'', ''$username'', ''$password'')or die(''cannot connect to server '');
mysql_select_db(''$db_name'')or die(''cannot select DB'')
$tbl_name=''counter''; // Table name
$sql=''SELECT * FROM $tbl_name'';
say that you need mysql database. user name, password and table in that database called counter....
So if you do please change parameters if you don't, dont yuse this script, use just some site with free simple counter for your site, which is maintained on their site
Comments:
Mar 19, 2009
- Then, the best way is to wrap it into some function, include that code in homepage and call function from somewhere in page where you want it to be seen , for ex.
<?php
function counter()
{
//copy counter code here
}
?>.....
<td id=''tdFooterRight''>
<?php counter(); ?></td>
....