merhaba arkadaşlar aşağıdaki, vereceğim kodda idler sıralamalar doğru olmasına rağmen hata vermeden boş ekran geliyor yardım edermisiniz.
<!DOCTYPE html>
<html>
<?php
include("sessionkontrol.php");
include("meta.php");?>
<body>
<?php
if ($_GET)
{
/* date ("d.m.20y h:m:s"); */
function GetIP(){
if(getenv("HTTP_CLIENT_IP")) {
$ip = getenv("HTTP_CLIENT_IP");
} elseif(getenv("HTTP_X_FORWARDED_FOR")) {
$ip = getenv("HTTP_X_FORWARDED_FOR");
if (strstr($ip, ',')) {
$tmp = explode (',', $ip);
$ip = trim($tmp[0]);
}
} else {
$ip = getenv("REMOTE_ADDR");
}
return $ip;
}
$bugun=time() + (3*60*60); //utc-3 için gerekli (3*60*60) ibaresi üç saat ilerisini alıyoruz bu şekilde.
include("baglanti.php");
echo $_GET['eid'] . "<br><br>" . $_GET['islem'] . "<br><br>". "<br><br>";
$cumle ="INSERT INTO envanterlog ";
$cumle = $cumle. "(eid,tarih,birimi,odano,cinsi,marka,model,demirbas,serino,unvan,kullanici,bilgisayaradi,teslimeden,durumu,geldigiyer,aciklama,silindimi,pid,sicil,adi,soyadi,yetkisi,islemtarihi,ip,yapilanislem) ";
$cumle = $cumle. "SELECT e.*, p.id,p.sicil,p.adi,p.soyadi,p.yetkisi,";
$cumle = $cumle . "'" . $bugun . "',";
$cumle = $cumle . "'" . GetIP() . "',";
$cumle = $cumle . "'" . $_GET['islem'] . "' ";
$cumle = $cumle."FROM envanter e, personel p WHERE e.id=" . (int)$_GET['eid'] . " and p.id=" . $_SESSION['kid'];
mysql_query($cumle);
header("location:gelismisarama.php");
}
?>
</body>
</html>