dbi_field
SQL (dbi.inc)
Description
dbi_field - Returns a field from an SQL result row.
Syntax
dbi_field ( Result:result, fieldnum, [ ... ] )
Type
Native
Notes
Returns 0 on failure. Although internally fields always start from 0, this function takes fieldnum starting from 1.

Examples of how to get SQL rows:
ret dbi_query(sqlquery)
new 
Float:fResult
new string[32]
new 
iResult

dbi_nextrow
(ret)

iResult dbi_field(ret1)
dbi_field(ret2fResult)
dbi_field(ret3string31)