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!
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.
<?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');
}
?>
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
You most likely have a line break, tab, space or some other character after the closing ?> tag in your included file.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.