Hi,
I've written a small function within a class. The method grabs a value from the database and, if it's present, increments it by one. If it's not present a new record is inserted. Easy huh? However, when I call the function the value is incremented by two! What on earth is going on here?
SNIP--
I'd be grateful for any help with this one. Many thanks in advance.
Bob.
~~ I've just realised that this is a browser issue.
Value is incremented by two instead of one
Moderator: General Moderators
Re: Value is incremented by two instead of one
Basically, FF seems to load a page twice if any errors connected with CSS or mark-up are found. I had specified a non-existent CCS file in my html and this caused my page counter to be called twice. IE, Safari and Opera do not have this problem. More info here:
http://www.110mb.com/forum/how-to-stop- ... 704.0.html
This might save someone some time in the future.
Cheers,
Bob.
http://www.110mb.com/forum/how-to-stop- ... 704.0.html
This might save someone some time in the future.
Cheers,
Bob.