PHP Code:
char[] sQuery = new char[200];
FormatEx(sQuery, 200, "SELECT `player_xp` FROM `%s` WHERE player_id = \"%s\"", TABLE, Player_Id);
gD_Database.Query(SQL_PlayerXP, sQuery); // gD_Database is the Database Handle
public void SQL_PlayerXP(Database hDatabase, DBResultSet hResults, const char[] sError)
{
if (hResults == null)
ThrowError(sError);
else if (hResults.RowCount != 1)
return;
hResults.FetchRow();
hResults.FetchInt(0); // The value
}
__________________