You are here: Re: INSERT into mysql alway make two entries « PHP Programming Language « IT news, forums, messages
Re: INSERT into mysql alway make two entries

Posted by dspohn on 09/15/05 00:40

Johannes,

I'm not sure if you have found the answer or not. One problem that I
was once having was similar to yours. I'm not sure if this helps at all
in your situation, but I figure I'd posting for anyone else that is
having this problem. Some 'INSERT' statements would happen two times.
This was only happening in Mozilla Firefox, however. After many hours
of searching and playing with my page, I realized that Firefox will
load a page twice (Not sure why) when it contains html or javascript
errors (cant remember which it is now).
One way I kept this double insert from happening (other then fixing the
errors) was to set a session variable on the form page and then check
if it the session variable was still set before the query was executed
and once it was executed I would clear the session variable, keeping it
from doing the double inserts. Hope this helps you or anyone else
having the problem that I was having.

d. spohn

 

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

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