note 91676 deleted from function.header by danbrown
| From: | danbrown@php.net | Date: | Mon, 22 Jun 2009 17:57:18 +0000 |
| Subject: | note 91676 deleted from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-157247@lists.php.net to get a copy of this message | ||
Note Submitter: marsha
----
my codes i keep trying they said there's an error at the last line which is the header. They
keep telling me this warning "Warning: Cannot modify header information". How to solve
this problem? anyone can help me?
if( is_numeric($execution) ) {
echo "Modifying Indicator<br>";
$Graph = $_POST["choice"];
$aPeriod = $_POST["valueA"];
$bPeriod = $_POST["valueB"];
$cPeriod = $_POST["valueC"];
$display = $_POST["displayname"];
echo "$Graph ... $aPeriod ... $bPeriod ... $cPeriod ... $display <br>"; //
Debugging purpose
if( !validation($display,'Text') ) { $display = ""; }
if( $Graph == "Please Select a Basic Indicatior" ) { $Graph = ""; }
$aPeriod = replace($aPeriod, 0);
if( $Graph == "MACD" ) {
$bPeriod = replace($bPeriod, 1);
$cPeriod = replace($cPeriod, 1);
}
else {
$bPeriod = 0;
$cPeriod = 0;
}
echo "Debugging : Graph used = $Graph ... Value A = $aPeriod ... Value B = $bPeriod ... Value
C = $cPeriod ... Display = $display <br>"; // for debugging
$display = strtoupper($display);
$query = "UPDATE Indicators SET ";
if( strlen($Graph) > 0 ) { $query = $query . " Function='$Graph',"; }
$query = $query . "ValueA='$aPeriod', ValueB='$bPeriod',
ValueC='$cPeriod'";
if( strlen($display) > 0 ) { $query = $query . ", Indicator='$display'"; }
$query = $query . " WHERE Username='$LoginID' AND
IndicatorID='$execution'";
echo "Update query = $query<br>";
accessDB($query,'');
header("Location:main.php"); --> this line that has an error.