I am trying to redirect to a URL after completion of a query update, but it is telling me that Cannot add header information - headers already sent by ...
Here is my code:
if($HOLD=='N'){
$query1 = "UPDATE KEYCAD SET HOLD='N' WHERE RO=$RO";
}else{
$query1 = "UPDATE KEYCAD SET HOLD='Y' WHERE RO=$RO";
}
$result = mysql_query($query1) or die(mysql_error());
if ($query1) {
header('Location: URL);
}
Any help appreciated thanks.