in the source code why did you insert the script like this?
public_html/metrodetroitrestaurantguide/counter.php
public_html can't access from the internet, that is a folder where you can place your files. I'm not sure in this , but out of the metrodetroitrestaurantguide folder is unaccessable.
So just use counter.php and add the page variable too.
In this code you should make changes to make it safer from SQL injection.
this is unsecure:
$query= "SELECT id, hits FROM `mysql_couter_logs` WHERE page = '$page'";
use it like this:
$query= sprintf("SELECT id, hits FROM `mysql_couter_logs` WHERE page = '%s'" , mysql_real_escape_string($page) );
And the Update should changed:
from:
$query = "UPDATE mysql_couter_logs SET hits = '$count' WHERE page = '$page'";
change into:
$query = sprintf("UPDATE mysql_couter_logs SET hits = hits+1 WHERE page = '%s'" , mysql_real_escape_string($page) );