12.08.2012, 20:24
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!
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