<?php include("baglan.php"); ob_start(); session_start(); if (is_null($_POST["giriş"])) { # code... } else { if (empty($_POST["ad"] && $_POST["sifre"])) { # code... } else { $kadi = $_POST['ad']; $sifre = $_POST['sifre']; $sql_check = mysqli_query($conn, "SELECT*FROM kt WHERE email='$kadi'AND sifre='$sifre' ") or die(mysqli_error()); if (mysqli_num_rows($sql_check)) { $_SESSION["login"] = "true"; $_SESSION["user"] = $kadi; $_SESSION["pass"] = $sifre; header("Location:admin.php"); } else { if ($kadi == "" or $sifre == "") { echo "<center>Lutfen kullanici adi ya da sifreyi bos birakmayiniz..! <a href=javascript:history.back(-1)>Geri Don</a></center>"; } else { echo "<center>Kullanici Adi/Sifre Yanlis.<br><a href=javascript:history.back(-1)>Geri Don</a></center>"; } } ob_end_flush(); # code... } } ?> |
Bildirim