kelebek

session_start();
include 'baglan.php';

if($_GET)
{
$name =$_GET["email"];
$pass =md5($_GET["password"]);
$query = $conn->query("SELECT * FROM user WHERE kullanici_adi='$name' AND sifre='$pass'")->fetch(PDO::FETCH_ASSOC);
if ( $say = $query){
if( $say > 0 ){

$_SESSION['oturum']=true;
$_SESSION['name']=$name;
$_SESSION['pass']=$pass;
}else{
echo "oturum açılmadı hata";
}
}
}
?>