[MySQL] "cache_get_field_content_int" no active cache
#9

Quote:
Originally Posted by DobbysGamertag
View Post
Why not use:

pawn Code:
if(cache_num_rows())//exists
{
    //code
}
Plus, to get a string, the syntax:

pawn Code:
cache_get_field_content(row, field_name[], destination[], connectionHandle = 1, max_len = sizeof(destination));
If he already connected to the DB he doesn't want to have the connectionHandle = 1, for me in the past that has caused errors for MySQL.

And mine checking if it exist works the same as yours does, person preference :P
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)