29.05.2012, 11:50
Is there is any other way to check is field null apart this?
Using MySQL not so long, so there may be mistakes even in this example code.
Thank you in advance.
pawn Код:
mysql_format(_, Query, "SELECT `Something` FROM `table` WHERE `Something2` = '%[]'", []);
mysql_query(Query);
mysql_store_result();
new szResult[lenght];
mysql_fetch_field_row(szResult, "Something");
if (szResult[0] == EOS)
{
...
}
else
{
...
}
Thank you in advance.