Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by Kyra
[...]
But thanks for your response ! And just for know, why my store result works 1 time and other time returning "NULL" mysql_fetch_row(query); is bad with cache query? What is the similar function with cache function?
|
mysql_fetch_row is in fact just a normal PAWN function which can be found in the MySQL plugin include. It just gets the data in a loop and concatenates it as a string. You really shouldn't use this function, fetch the data with the standard cache_* natives like cache_get_row or cache_get_field_content.
Quote:
Originally Posted by zPain
[...]
But I thought the length parameter was not necessary.
|
That's the well-known problem with enum-arrays.
Take a look at this post, it explains the problem in detail.