You are here: counter code in frame counts visit as two clicks « All PHP « IT news, forums, messages
counter code in frame counts visit as two clicks

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация