每当我得到正确的“hwid”时,我只是想向页面显示一些东西,但是不管hwid是否在数据库中,它仍然显示0。有什么帮助吗?
[...]
else if($action == "dl")
{
$query = $con->query("SELECT * FROM `users` WHERE hwid = '$hwid'");
$cnt = $query->num_rows;
if($cnt == 1)
{
$logged = 1;
}
else if ($cnt == 0)
{
$logged = 0;
}
else
{
$logged = 0;
}
if ($logged == 1)
{
echo 'yep';
} else {
echo '0';
}
}
暂无答案!
目前还没有任何答案,快来回答吧!