this is warning. even it is NOT allowing me to open the page admin.php and error is ":
Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\rail\index.php:446) in
<?php
ob_start();
error_reporting(E_ALL);
here is warning in this line . where i have started the session
session_start();
include("db.php");
if(isset($_POST['log']))
{
$user= $_POST['username'];
$pass= md5($_POST['password']);
$sql=mysql_query( "select * from reg where username= '$user' AND password='$pass' ") or die( mysql_error());
$data=mysql_num_rows($sql);
if ($data == 1) {
while($row = mysql_fetch_array($sql)){
$_SESSION['username']=$s1;
echo '<script>window.location="admin.php"</script>';
}
}
else {
echo '<script type="text/javascript">';
echo 'alert("Password Invalid!")';
echo '</script>';
}
}
ob_end_flush();
?>