Lightzero
May 14th, 2006, 07:46 PM
Hi friends,
I get warning message like :
"Warning: Cannot modify header information - headers already sent by (output started at G:\AppServ\www\Indikator\in_indikator.php:97) in G:\AppServ\www\Indikator\in_indikator.php on line 113"
In my source i have :
<? include "config.php";
if(!isset($_SESSION["Username"]))
{
header("location:Login.php");
}
?>
.
. //This HTML Code
.
<?
if(!isset($Register))
{
header("location:in_register.php");
}
$query=mysql_query("Select MRN,Code,Name,DocId,Pav,Release From Register where Kode='" . $Register . "'",$con);
if (mysql_num_rows($query)>0)
{
$qry2=mysql_query("Select MRN,Code From Indikator where Kode='".$Register."'",$con);
if(mysql_num_rows($qry2)>0)
{
header("location:in_register.php?pesan='Register already existed'"); // This is line 113
}
$hasil=mysql_fetch_row($query);
}
?>
Is there any solution ???
Thank You for your help .... :D :D
I get warning message like :
"Warning: Cannot modify header information - headers already sent by (output started at G:\AppServ\www\Indikator\in_indikator.php:97) in G:\AppServ\www\Indikator\in_indikator.php on line 113"
In my source i have :
<? include "config.php";
if(!isset($_SESSION["Username"]))
{
header("location:Login.php");
}
?>
.
. //This HTML Code
.
<?
if(!isset($Register))
{
header("location:in_register.php");
}
$query=mysql_query("Select MRN,Code,Name,DocId,Pav,Release From Register where Kode='" . $Register . "'",$con);
if (mysql_num_rows($query)>0)
{
$qry2=mysql_query("Select MRN,Code From Indikator where Kode='".$Register."'",$con);
if(mysql_num_rows($qry2)>0)
{
header("location:in_register.php?pesan='Register already existed'"); // This is line 113
}
$hasil=mysql_fetch_row($query);
}
?>
Is there any solution ???
Thank You for your help .... :D :D