$pgname) { #increment the counter $cntnum++; # update the counter on the server $query = mysql_query("update $table set cnt_num = $cntnum where cnt_name='$pgname' and cnt_date='$today'"); #register session for counter session_register("sessioncounter"); $sessioncounter = $pgname; } mysql_query("UNLOCK TABLES"); # display a spacer graphic on the page. echo "http://www.pressreleasenetwork.com/image/blank.gif"; # if include phtml works you can even display the counter #echo $cntnum; ?>