About MySQL R39-2
#1

So I have been using R7 for a while and I decided to use R39-2.

So i'm wondering do I have to store the result, and free the result every time in an example like this?

pawn Код:
format(query, sizeof(query), "SELECT * FROM `players` WHERE `Username` = '%s'", GetName(playerid));
    mysql_tquery(chandle, query, "CheckAccount", "d", playerid);
or do I have to do
pawn Код:
format(query, sizeof(query), "SELECT * FROM `players` WHERE `Username` = '%e'", GetName(playerid));
    mysql_tquery(chandle, query, "CheckAccount", "d", playerid);
Reply
#2

A little explanation:

Reply
#3

I think it's just easier to use mysql_format and use the %e specifier as stated above.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)