Msyql Problem
#1

Hello i have a very bis Problem the password is always wrong.
Код:
stock mysql_CheckPasswort(Name[],Passwort[])
{
 	new query[256];
	if(strlen(Name) < 1 || strlen(Passwort) < 1) return 0;
    mysql_escape_string(Name,Name,dbhandle,126);
    mysql_escape_string(Passwort,Passwort,dbhandle,126);
    format(query,sizeof(query),"SELECT * FROM Accounts WHERE Username='%s' AND Passwort=SHA1('%s')",Name,Passwort);
 	mysql_query(dbhandle,query,true);
	printf("%d",cache_num_rows());
	if(cache_num_rows() == 0)
	{
	    return 0;
	}
	else
	{
	    return 1;
	}
}
Reply


Messages In This Thread
Msyql Problem - by tobstar112 - 24.04.2016, 08:38
Re: Msyql Problem - by introzen - 24.04.2016, 10:00
Re: Msyql Problem - by tobstar112 - 24.04.2016, 10:56
Re: Msyql Problem - by introzen - 24.04.2016, 11:03
Re: Msyql Problem - by CodeStyle175 - 24.04.2016, 12:39
Re: Msyql Problem - by tobstar112 - 24.04.2016, 13:06
Re: Msyql Problem - by tobstar112 - 24.04.2016, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)