|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20636 usage of header("") function causes blank entries in mysql
Submitted: 2002-11-25 20:54 UTC Modified: 2002-11-25 23:17 UTC
From: dan at supergeek dot homelinux dot org Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.2.3 OS: Linux Mandrake 9.0
Private report: No CVE-ID: None
 [2002-11-25 20:54 UTC] dan at supergeek dot homelinux dot org
I have a script that checks $submit for a specific value.  If that value is matched a record in a mysql db is updated and before anything is displayed I use the header("Location:  my.php?variable=somethine");  When I use the header function above the update statement, which occurrs before the header function, updates all the fields listed in the query to be blank.  Taking the header function out produces the desired results in the query.  

The source for this problem can be seen at  

Thanks for reading this


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-25 23:17 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-11-25 23:17 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 16:03:56 2022 UTC