Trying you use an updateGoto command but getting error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
3dron
Forum Commoner
Posts: 40
Joined: Sat Feb 01, 2003 10:25 pm

Trying you use an updateGoto command but getting error

Post 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));
}
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Hi, this is actually a PHP problem - not a database problem and it is explained here:
viewtopic.php?t=1157

Mac
Post Reply