Posted by Chris Matchett on 09/28/10 11:47
The counter code I am using below increments the value of hits by 'two'
when someone visits my homepage using IE (Firefox increments by 1 as it
should be). I am not sure why?
My homepage is part of a frameset as the domain name I am using is
currently redirecting to another host. I am not sure is the root of the
problem but does anyone have a more reliable solution.
Many thanks,
Chris
if (!session_is_registered("counted")){
$q= 'UPDATE hits SET hits=hits+1';
mysql_query($q);
session_register("counted");
}
Navigation:
[Reply to this message]
|