Page 1 of 1

Trying you use an updateGoto command but getting error

Posted: Mon Feb 03, 2003 1:36 am
by 3dron
I am using Dreamweaver which has an updateGoto command. DOn't mean to be vague, but I am barely understanding the error to ask athe question.

Thanks for any help or direction.

I am getting the following error:

Warning: Cannot add header information - headers already sent by (output started at /home/mysite/www/modify.php:2) in /home/mysite/www/modify.php on line 66


Here is part of the code:

$updateGoTo = "/player.php?" . $row_Recordset1['login'] . "=";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}

Posted: Mon Feb 03, 2003 2:08 am
by twigletmac
Hi, this is actually a PHP problem - not a database problem and it is explained here:
viewtopic.php?t=1157

Mac