<?PhP
$sql = mysql_query("select * from hitcounter")or die(mysql_error()); $output= mysql_fetch_array($sql); $count = $output['count']; if(!isset($_SESSION['count'])) { $count=$count+1; $_SESSION['count']="ok"; mysql_query("update hitcounter set count='$count'") or die(mysql_error()); }
?>