Mysql login error Strickenkid's
#1

Hey!

Heres the code:



Код:
CheckAccountExists(account[])
{
	new string[128];
   	format(string, sizeof(string), "SELECT * FROM users WHERE username = '%s'", account);
   	mysql_query(string,1);
   	

	mysql_store_result(Handle);

	new value;
	value = mysql_num_rows(Handle);
	mysql_free_result(Handle);
	return value;
}
The console says that the query is executed but it gives me sum errors when i try to store the value..

Код:
[Sun Sep 16 15:07:34 2012] Error (0): Function: mysql_store_result called when no prior successful query executed.
[Sun Sep 16 15:07:34 2012] Error (0): Function: mysql_num_rows called when no result stored.
I have the connection..

Thank you!
Reply


Messages In This Thread
Mysql login error Strickenkid's - by ViPGuy - 16.09.2012, 11:53
Re: Mysql login error Strickenkid's - by scottyishere - 16.09.2012, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)