class panel extends baglan
{
function soz()
{
return self::sozyaz();
}
protected function sozyaz()
{
if(!isset($_COOKIE["sagliksoz"]))
{
$ssql="select * from sagliksoz where durum=:d order by rand() asc limit 1";
$soz=$this->vt()->prepare($ssql);
$soz->execute(array("d"=>1));
$sozal=$soz->Fetch(PDO::FETCH_ASSOC);
if(!isset($sozal["soz"]) or $sozal["soz"]==null or $sozal["soz"]=="")
{
$gsoz="Söz Eklenmedi";
setcookie("sagliksoz",$gsoz,time()+86400);
if(@$_COOKIE["sagliksoz"])
{
$sagliksoz=$_COOKIE["sagliksoz"];
}
else
{
$sagliksoz=$gsoz;
}
}
else
{
setcookie("sagliksoz",$sozal["soz"],time()+86400);
if(@$_COOKIE["sagliksoz"])
{
$sagliksoz=$_COOKIE["sagliksoz"];
}
else
{
$sagliksoz=$sozal["soz"];
}
}
}
else
{
$sagliksoz= $_COOKIE["sagliksoz"];
}
return $sagliksoz;
}
}
eklediğim alanda aşağıfdaki hatayı veriyor
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\hesapla\inc\menu.php:34) in C:\xampp\htdocs\hesapla\kutuphane\lib\yanpanel.sinif.php on line 42
Çerezde atmıyor aradım bulamadım sinir etti