select id from users where username='xx' and password='xx' limit 1
if(!empty($row['id']))
{
evet kayıt var
}