Page 1 of 1
Warning: Cannot send session cache limiter - headers already
Posted: Thu Aug 17, 2006 5:37 am
by shiranwas
hi,
i got the above warning and i am clue less.
i have page called assign.php i have put the following coding on the top of the
page before anything else
in the same page there is a submit button when i click it after quering the database it will redirect to the assign.php, at that time the above warning displays.
help me please
Posted: Thu Aug 17, 2006 5:39 am
by JayBird
you sure there is nothing before it? not even any white space or anything?
Posted: Thu Aug 17, 2006 5:43 am
by shiranwas
yes i am sure, and its works when it first appears but when i click on a submit button and include(assign.php) only problam occures
Posted: Thu Aug 17, 2006 5:46 am
by bmcewan
What is happening in the file before you include that file?
Post some code.
Posted: Thu Aug 17, 2006 5:52 am
by shiranwas
this is the whole page which includes the page assing.php
Code: Select all
<?php
if ($_POST['cmdOK']=="SAVE"){
include('Conn.php');
$department=$_POST['cboDept'];
$departmentid="";
//echo $department;
//--------------finding dept id -----------------------------------------
$sql="select deptid from tbldepartments where deptname='$department' ";
$query=mysql_query($sql) or die ("Can not query the department table");
$row=mysql_fetch_assoc($query);
if (!$row){
echo "Department does not exist.";
//break;
}else{
$departmentid=$row['deptid'];
}
//----------------------------------------------------------------------
$message=$_POST['result'];
$reject=$_POST['chkRejected'];
$jobno=substr($_POST['optSelected'],1,4);
$che='N';
$completed='N';
if ($reject !=''){
$che='Y';
$completed='Y';
}
$sql="update tblComplaints set message='$message' , rejected='$che', deptid='$departmentid',completed='$completed' where jobno='$jobno' ";
include('assign.php');
}
if ($_POST['next']=="next"){
$_SESSION['start']=$_SESSION['start']+2;
include('assign.php');
}
?>
Posted: Thu Aug 17, 2006 6:12 am
by bmcewan
is there anything else, other than that error on the screen.
Can you paste the full error here as well including file and line numbers.
Posted: Thu Aug 17, 2006 12:17 pm
by volka
bmcewan wrote:Can you paste the full error here as well including file and line numbers.
only for clearity: that's the
output startet at /path/to/script.php:5 part, where 5 is the line number in that file.
And php is never wrong about when or were the output started

Posted: Thu Aug 17, 2006 12:20 pm
by s.dot
You most likely have a line break, tab, space or some other character after the closing ?> tag in your included file.