05.03.2015, 08:42
Код HTML:
LoadJobRanks() { new buffer[128], count = 0; mysql_query("SELECT * FROM job_ranks"); mysql_store_result(); while(mysql_fetch_row_format(buffer, "|")) sscanf(buffer, "p<|>e<iis[" #MAX_RANK_NAME "]ii>", RankInfo[ count++ ]); mysql_free_result(); return 1; }
Код HTML:
[11:02:16] CMySQLHandler::Query(SELECT * FROM job_ranks) - Successfully executed. [11:02:16] >> mysql_store_result( Connection handle: 1 ) [11:02:16] CMySQLHandler::StoreResult() - Result was stored. [11:02:16] >> mysql_fetch_row_format( Connection handle: 1 ) [11:02:16] CMySQLHandler::FetchRow() - Return: pirmas|1|1|523|20 [11:02:16] >> mysql_fetch_row_format( Connection handle: 1 ) [11:02:16] CMySQLHandler::FetchRow() - Return: antras|1|2|599|30 [11:02:16] >> mysql_fetch_row_format( Connection handle: 1 ) [11:02:16] >> mysql_free_result( Connection handle: 1 ) [11:02:16] CMySQLHandler::FreeResult() - Result was successfully free'd. [11:02:16] >> mysql_free_result( Connection handle: 1 ) [11:02:16] CMySQLHandler::FreeResult() - The result is already empty. [11:02:17] OnQueryError() - Called. [11:02:17] OnQueryError() - Called. [11:02:17] OnQueryError() - Called. [11:02:17] OnQueryError() - Called.