php.net |  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 http://supergeek.homelinux.org/phpmywork/dropoff2.phps  

Thanks for reading this

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

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] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 07:01:29 2024 UTC