Hi Everubody,
Code is thois :
<?php
include_once("c onnection.php") ;
ob_start();
@session_start( );
$ctr="";
$ctr1="";
if($_POST["login_x"]!="")
{
$emp_name=$_REQ UEST['emp_name'];
$emp_pass=$_REQ UEST['emp_pass'];
$emp_name=trim( $emp_name);
$emp_pass=trim( $emp_pass);
//echo "select * from tb_emp where fld_ename='$emp _name' && fld_passs='$emp _pass'";
$sql1=mysql_que ry("select * from tb_emp where fld_ename='$emp _name' && fld_passs='$emp _pass' && fld_status='App roved'");
$num1=mysql_num _rows($sql1);
$ress1=mysql_fe tch_row($sql1);
$uidd1=$ress1[0];
if($num1 > 0)
{
$_SESSION['empname']="$emp_name" ;
$_SESSION['eid']="$uidd1";
header("locatio n: my-medscout-emp.php");
}
else
{
$msg1="Invalid user/password ";
}
}
if($_POST["continue_x "]!="")
{
$_SESSION['price']=$_POST['price'];
$_SESSION['txt']=$_POST['txt'];
header("Locatio n: employee-login-signup.php");
}
## SHOW ALL STATE JOBS ##
$sql12="select fld_state,sum(f ld_status) from tb_jobs group by fld_state";
$sql13=mysql_qu ery($sql12);
$query2=mysql_n um_rows($sql13) ;
?>
if i run this code in our server, then no problem.
But, In client server, this is show following error.
Warning: Cannot modify header information - headers already sent by (output started at /home/content/b/n/i/bniceaa/html/connection.php: 1) in /home/content/b/n/i/bniceaa/html/buy-job-posting.php on line 36
Plz help me.
Regarsd
Anu2007
Code is thois :
<?php
include_once("c onnection.php") ;
ob_start();
@session_start( );
$ctr="";
$ctr1="";
if($_POST["login_x"]!="")
{
$emp_name=$_REQ UEST['emp_name'];
$emp_pass=$_REQ UEST['emp_pass'];
$emp_name=trim( $emp_name);
$emp_pass=trim( $emp_pass);
//echo "select * from tb_emp where fld_ename='$emp _name' && fld_passs='$emp _pass'";
$sql1=mysql_que ry("select * from tb_emp where fld_ename='$emp _name' && fld_passs='$emp _pass' && fld_status='App roved'");
$num1=mysql_num _rows($sql1);
$ress1=mysql_fe tch_row($sql1);
$uidd1=$ress1[0];
if($num1 > 0)
{
$_SESSION['empname']="$emp_name" ;
$_SESSION['eid']="$uidd1";
header("locatio n: my-medscout-emp.php");
}
else
{
$msg1="Invalid user/password ";
}
}
if($_POST["continue_x "]!="")
{
$_SESSION['price']=$_POST['price'];
$_SESSION['txt']=$_POST['txt'];
header("Locatio n: employee-login-signup.php");
}
## SHOW ALL STATE JOBS ##
$sql12="select fld_state,sum(f ld_status) from tb_jobs group by fld_state";
$sql13=mysql_qu ery($sql12);
$query2=mysql_n um_rows($sql13) ;
?>
if i run this code in our server, then no problem.
But, In client server, this is show following error.
Warning: Cannot modify header information - headers already sent by (output started at /home/content/b/n/i/bniceaa/html/connection.php: 1) in /home/content/b/n/i/bniceaa/html/buy-job-posting.php on line 36
Plz help me.
Regarsd
Anu2007
Comment