Why doesn't this work? (MySQL)
#9

I fixed it by forming it into a function:
pawn Код:
stock GetPassword(classid[], password[])
{
    new query[128], classstring[8];
    format(query, sizeof(query),"SELECT * FROM `passwords` WHERE `class` = '%s'", classid);
    mysql_query(query);
    mysql_store_result();

    while(mysql_fetch_row_format(query,"|"))
    {
        new tablevalue[16];
        strpack(classstring, classid); mysql_fetch_field_row(tablevalue, "password"); format(password, 16, "%s", tablevalue);
    }
    mysql_free_result();

    return 1;
}
Reply


Messages In This Thread
Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 01:28
Re: Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 22:23
Re: Why doesn't this work? (MySQL) - by Campbell- - 28.04.2014, 22:26
Re: Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 22:36
Re: Why doesn't this work? (MySQL) - by Campbell- - 28.04.2014, 22:38
Re: Why doesn't this work? (MySQL) - by Dignity - 28.04.2014, 22:39
Re: Why doesn't this work? (MySQL) - by austin070 - 28.04.2014, 22:46
Respuesta: Why doesn't this work? (MySQL) - by JustBored - 28.04.2014, 23:47
Re: Why doesn't this work? (MySQL) - by austin070 - 29.04.2014, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)