You need to do a select query:
PHP Code:
select xp, level from stats where steamid = %d
Then in the thread function you fetch the row and then you fetch the columns:
PHP Code:
if (rs.FetchRow())
{
int xp = rs.FetchInt(0); // the first column
int level = rs.FetchInt(1); // the second column
}
__________________