CMySQLResult::GetRowDataByName() - invalid row index ('0')
#4

If it returns more than 1 row, then use a loop like in the first one.
If it returns only 1 row (which in this case you better add "LIMIT 1" at the end of the query), then:
pawn Код:
if (cache_get_row_count(SQL))
{
    cache_get_field_content(0, "AddBy", gString);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)