Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /srv/disk1/3103816/www/tsdns.pro/LimonCMS/index.php:1) in /srv/disk1/3103816/www/tsdns.pro/LimonCMS/index.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /srv/disk1/3103816/www/tsdns.pro/LimonCMS/index.php:1) in /srv/disk1/3103816/www/tsdns.pro/LimonCMS/index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /srv/disk1/3103816/www/tsdns.pro/LimonCMS/index.php:1) in /srv/disk1/3103816/www/tsdns.pro/LimonCMS/index.php on line 30


warningleri alıyorum ve kodlarım aşağıdaki gibidir. Acil Çözebilimisiniz kafayı yicem




session_start();
ob_start();

$message = "";
try
{
$connect = new PDO(" Burası Doğru Buraya bakma bile xd');
$connect->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
if(isset($_POST["login"]))
{
if(empty($_POST["username"]) || empty($_POST["password"]))
{
$message = '';
}
else
{
$query = "SELECT * FROM yetkili WHERE username = :username AND password = :password";
$statement = $connect->prepare($query);
$statement->execute(
array(
'username' => $_POST["username"],
'password' => $_POST["password"]
)
);
$count = $statement->rowCount();
if($count > 0)
{
$_SESSION["username"] = $_POST["username"];
header("location:anasayfa.php");
}
else
{
$message = '';
}
}
}
}
catch(PDOException $error)
{
$message = $error->getMessage();
}
?>



LimonCMS
<script></script>

<script></script>





if(isset($message))
{
echo '';
}
?>

LemonCMS Giriş Paneli