MySQL | Does not return the correct value
#1

hello !

whay this not return the correct value from table ?

here the stock:

pawn Код:
stock GetPlayerClan(playerid)
{
    new query[100];
    format(query,sizeof(query),"SELECT `Clan` FROM `Users` WHERE `Nick`='%s'",GetName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_retrieve_row() == 1) mysql_fetch_field_row(query, "Clan");
    mysql_free_result();
    return strval(query);
}
thank's.
and anyone, i want guide from mysql. but only about function's/
thank for the helpers.
Reply


Messages In This Thread
MySQL | Does not return the correct value - by EviLpRo - 28.06.2011, 14:47
Re: MySQL | Does not return the correct value - by Raimis_R - 28.06.2011, 14:56
Re: MySQL | Does not return the correct value - by Vince - 28.06.2011, 14:58
Re: MySQL | Does not return the correct value - by gimini - 28.06.2011, 15:06
Re: MySQL | Does not return the correct value - by EviLpRo - 28.06.2011, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)