Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers
already sent (output started at /home/scalepro/public_html/Admin ............................. Actually there is no space and output but still showing the above error message.
Here is the code:
<?php
ob_start();session_start();
?>
<html>
<head>
</head>
<body>
<?php
require_once('../../Admin Panel/db.php');
if(isset($_POST['email']) && !empty($_POST['email']) && isset($_POST['password']) && !empty($_POST['password']))
{
$email = $_POST['email'];
$password = $_POST['password'];
$query="SELECT RemoteEmployeeFullName, RemoteEmployeeEmail, RemoteEmployeePassword FROM remoteemployees WHERE RemoteEmployeeEmail='".$email."' AND RemoteEmployeePassword='".$password."'";
$queryrun=$connection->query($query);
if($queryrun->num_rows > 0)
{
$_SESSION['email']=$RemoteEmployeeFullName;
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=REPLists.php">';
exit();
}
else
{
echo 'Email: <b>'.$email. '</b> or Password <b>'. $password.'</b> Is Not Typed Correctly Try Again Please!.';
echo '<META HTTP-EQUIV="Refresh" Content="5; URL= ../../spd/myaccount.php">';
exit();
}
}
else
{
echo '<META HTTP-EQUIV="Refresh" Content="5; URL= home/scalepro/public_html/spd/myaccount.php">';
exit();
}?>
</body>
</html>