the following php script has caused me no end of trouble... Literally, becuase it seems to have found a $ on the last line. It is giving this error:
Parse error: parse error, unexpected $ in G:\Apps\InetPub\wwwroot\mdateam\php\counter.php on line 9
HELP!!
counter.php<
<?php
require_once
('../connections/mdateam_atlas.php"); //Establishes connection.
mysql_select_db("mdateam", $MDATeam_Atlas);
$result = mysql_query("SELECT hits FROM counter") or die ("Invalid query");
$hits = mysql_fetch_assoc($result);
$count = $hits[0];
$count++;
$result = mysql_query("DELETE * FROM hits");
$result = mysql_query("INSERT INTO hits VALUES(%s)", $count);
?>