16.03.2012, 06:41
(
Последний раз редактировалось Thomas.; 17.03.2012 в 00:17.
)
Hi all,
I'm having some issues with mysql_fetch_field_row().
For some reason the function only fetches a few fields, after that it simply returns empty values.
Here is a part of the log:
As these logs shows, it just stops fetching values (as seen from 'somefield16') at a random point, or at least so it seems.
Part of the code:
What could be the cause of this problem?
Thanks in advance.
I'm having some issues with mysql_fetch_field_row().
For some reason the function only fetches a few fields, after that it simply returns empty values.
Here is a part of the log:
Код:
[07:10:48] >> mysql_store_result( Connection handle: 1 ) [07:10:48] CMySQLHandler::StoreResult() - Result was stored. [07:10:48] >> mysql_retrieve_row( Connection handle: 1 ) [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield1") - Some value [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield2") - 1 [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield3") - 6 ... [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield10") - Another value [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield11") - 0 [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield12") - 0 [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield13") - 1 [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield14") - 0 [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield15") - 0 [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield16") - [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield17") - [07:10:48] >> mysql_fetch_field_row( Connection handle: 1 ) [07:10:48] CMySQLHandler::FetchField("somefield18") -
Part of the code:
pawn Код:
...
mysql_store_result();
if(mysql_retrieve_row())
{
mysql_fetch_field_row(someString1, "somefield1");
mysql_fetch_field_row(someString2, "somefield2");
mysql_fetch_field_row(someString3, "somefield3");
mysql_fetch_field_row(someString4, "somefield4");
...
Thanks in advance.