Arkadaşlar,Web Sitem için Üye Giriş Sistemi Yapmaya Çalışıyorum.
Fakat Bilgiler Doğruda Olsa Yanlışta Olsa Giriş Başarısız Oluyor,
Kod'daki Hata Nedir?
Fakat Bilgiler Doğruda Olsa Yanlışta Olsa Giriş Başarısız Oluyor,
Kod'daki Hata Nedir?
Public Static Function Uye_Log_Kon()
{
Global $DB;
If(!$_POST['Log'] == ""){
$_User['Log_UN'] = Trim($_POST['Log_UN']);
$_User['Log_PASS'] = Md5(Sha1(Trim($_POST['Log_PASS'])));
$_Log = $DB->Prepare("SELECT * FROM uyeler WHERE Username=? AND Password=?");
$_Log->Execute(Array($_User['Log_UN'],$_User['Log_PASS']));
If($_Log->RowCount()){
Foreach($_Log As $Uye){
$_Session['User_ID'] = $Uye['id'];
$_Session['User_Name'] = $Uye['Username'];
$_Session['User_Mail'] = $Uye['Email'];
}
$_Session['User_Logged'] = true;
Header('Loc-At-ion: /home');
}Else{
Echo "<Script type='Text/Javascript'>alert('HATA! Giris Basarisiz!')</Script>";
} } }
Son düzenleme: