m_row msqlFetchRow ( m_result *result ) | |
Retrieves a single row of data from a result set. This data is placed
in an m_row structure, which is an array of
character strings. With each successive call to
msqlFetchRow, another row is returned until there
are no more rows left, then a null value is returned.
Example
m_result *results;
m_row *row;
rows_returned = msqlQuery( dbh, "SELECT * FROM people" );
results = msqlStoreResult();
row = msqlFetchRow(results);
printf("The third field of the first row of the table is: %s\n", row[2]);