|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10599 background attribute in the body tag causes a double insert
Submitted: 2001-05-02 03:45 UTC Modified: 2001-05-06 13:24 UTC
From: gkm at duke dot edu Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.4pl1 OS: linux
Private report: No CVE-ID: None
 [2001-05-02 03:45 UTC] gkm at duke dot edu
I have documented the problem at <a href=""></a>.  If you have any questions, email me at <a href=""></a>.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-06 13:24 UTC]
Actually, it's a bug in your HTML (although you did confuse me for a few minutes...)
The attribute you're looking for is bgcolor;  background loads a background image, and expects a URL argument.  When you feed it with #FFFFFF, it tries to access to load it as a background image, access the page again, and causes a second insert.

It was a good challenge though :)
 [2002-09-20 04:31 UTC] php at unreelpro dot com
although the link is dead, from zeev's response one can 
gather that gkm had a script that was double inserting into 
a db because he mistakenly put a color code in the 
background tag.

this serves as a good warning not to have a misformed 
background attribute in your body tag. i found that just an 
empty background attribute (background="") caused a script 
to run twice (maybe calling itself?). this caused db 
operations to be performed twice.
 [2003-04-02 09:52 UTC] heptane at hotmail dot com
Wow wow , guy you just made me fly again (lol)...
My Mysql_query was acting weird, inserting double records in my table :) ....
i was stuck because of this f*** error in my html code and i've lost 1 day searching over the internet to understand what was wrong , looking around because i just re-installed my apache/mysql server (abria MERLIN) and noticed that bug.

Thx a lot for this :)

Stef ( France) -
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jan 24 10:01:24 2021 UTC