Problem selecting from DB
#3

I think you want to return a string

pawn Код:
forward GetCuData(playerid, campo[]);
public GetCuData(playerid, campo[])
{
    new tmp[128];
    new row[60];
    format(tmp, 128, "SELECT %s FROM cucus WHERE ID= %d LIMIT 1", campo, cuInfo[playerid][cuSQLID]);
    mysql_query(tmp);
    mysql_store_result();
    mysql_fetch_row(row);
    mysql_free_result();
    return row;
}
Reply


Messages In This Thread
Problem selecting from DB - by Narxon - 08.05.2011, 01:08
Re: Problem selecting from DB - by Georgelopez1 - 08.05.2011, 03:59
Re: Problem selecting from DB - by MadeMan - 08.05.2011, 12:39
Respuesta: Problem selecting from DB - by Narxon - 08.05.2011, 13:23
Re: Respuesta: Problem selecting from DB - by MadeMan - 08.05.2011, 13:26
Respuesta: Problem selecting from DB - by Narxon - 08.05.2011, 13:35
Re: Problem selecting from DB - by MadeMan - 08.05.2011, 13:37
Respuesta: Problem selecting from DB - by Narxon - 08.05.2011, 13:45
Re: Problem selecting from DB - by MadeMan - 08.05.2011, 13:52
Respuesta: Problem selecting from DB - by Narxon - 08.05.2011, 14:01

Forum Jump:


Users browsing this thread: 2 Guest(s)