mysql Get String R7 problem
#1

I have this code but when i use it server crashes and the mysql_log says that the result was empty and that I cant call a function now:
BUT the field i wanna get is not empty!
Код:
stock mysql_GetString(Table[], Field[], Where[], Is[])
{
	new query[128], Get[128];
	mysql_real_escape_string(Table, Table);
	mysql_real_escape_string(Field, Field);
	mysql_real_escape_string(Where, Where);
	mysql_real_escape_string(Is, Is);
	format(query, 128, "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", Field, Table, Where, Is);
	mysql_function_query( gSQL , query , false , "" , "" );
	mysql_store_result();
 	mysql_fetch_row(Get);
	mysql_free_result();
	return Get;
}

Any Idea? I use R7 from BlueG
Reply


Messages In This Thread
mysql Get String R7 problem - by Mellnik - 12.08.2012, 20:24
Re: mysql Get String R7 problem - by phillip875 - 12.08.2012, 20:27
AW: Re: mysql Get String R7 problem - by Mellnik - 12.08.2012, 20:29
Re: mysql Get String R7 problem - by phillip875 - 12.08.2012, 20:34
AW: mysql Get String R7 problem - by Mellnik - 12.08.2012, 20:37
Re: mysql Get String R7 problem - by phillip875 - 12.08.2012, 20:38
Re: mysql Get String R7 problem - by playbox12 - 12.08.2012, 20:56
AW: Re: mysql Get String R7 problem - by Mellnik - 12.08.2012, 21:16
Re: mysql Get String R7 problem - by playbox12 - 12.08.2012, 21:29

Forum Jump:


Users browsing this thread: 6 Guest(s)