Hocam çok sağol ama birkaç hata verdi sayfalar.
giris.php de
Parse error: syntax error, unexpected T_STRING in C:\AppServ\www\defter\admin\giris.php on line 97
Bu hatayı verdi, 97. satırı kalın olarak yazıyorum.
<?php
}else{
$sorgu=mysql_query("SELECT * FROM admin WHERE nick='$nick' AND sifre='$sifre'");
if(mysql_num_rows($sorgu)<1){
echo "Kullanıcı adı veya şifreniz hatalıdır, lütfen tekrar deneyiniz..<br>";
}else{
$_SESSION['oturum'] = 1
header("Location: index.php");
}} #97. satır
ob_end_flush();
?>index.php de şu hatayı veriyor
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\AppServ\www\defter\admin\index.php:10) in C:\AppServ\www\defter\admin\index.php on line 61
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\defter\admin\index.php:10) in C:\AppServ\www\defter\admin\index.php on line 61
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\defter\admin\index.php:10) in C:\AppServ\www\defter\admin\index.php on line 63
Sayfa geliyor ama bu hatalar çıkıyor. 61. ve 63. satırları kalın yazıyorum
<?php
ob_start();
session_start(); # 61. satır
if(empty($_SESSION['oturum'])) {
header("Location: index.php"); # 63. satır
exit(); }Çok teşekkürler hocam.