我有mysql连接和它的工作。连接完成,mysql结果没问题。我试图登录我的面板,但每次给“密码不正确”/Kullanıcıadınızveyaşifrenizyanlış。我该如何解决这个问题?
if(@$_GET['selection'] == 'verification' )
{
$myusername=$_POST['myusername'];
$mypassword=$_POST['mypassword'];
$tbl_name="kullanicilar";
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);
$sql="SELECT * FROM kullanicilar WHERE kullaniciadi='$myusername' and sifre='$mypassword'";
$result=@mysql_query($sql);
$count=@mysql_num_rows($result);
if (@mysql_num_rows($result) != 0)
{
session_register("myusername");
session_register("mypassword");
header("location:index.php?page=giris&lang=tr&selection=verified");
}
else
{
echo "Kullanici adiniz veya sifreniz yanlis. <b>$count</b>";
}
}