ive been trying to get this script for work for a few days now.
<?php
include 'dbinfo.php';
include 'dbconnect.php';
//get count
$query = "SELECT * FROM counter";
$display=mysql_query($query);
$hits = $display;
if (!session_is_registered("counted"))
{
mysql_query("UPDATE counter SET hits = hits +1");
session_register("counted");
}
mysql_close();
}
It will not update the counter...help!
-Dave
<?php
include 'dbinfo.php';
include 'dbconnect.php';
//get count
$query = "SELECT * FROM counter";
$display=mysql_query($query);
$hits = $display;
if (!session_is_registered("counted"))
{
mysql_query("UPDATE counter SET hits = hits +1");
session_register("counted");
}
mysql_close();
}
It will not update the counter...help!
-Dave