msqlNumRows(3)

NAME
msqlNumRows - Return number of rows in a result table

SYNOPSYS
#include <msql.h>

int msqlNumRows(m_result *result);

DESCRIPTION
The number of rows returned by a query can be found by calling msqlNumRows() and passing it the result handle returned by msqlStoreResult(3). The number of rows of data sent as a result of the query is returned as an integer value. If a SELECT query didn't match any data, msqlNumRows() will indicate that the result table has 0 rows (note: earlier versions of mSQL returned a NULL result handle if no data was found. This has been simplified and made more intuitive by returning a result handle with 0 rows of result data).

RETURN VALUE
The number of rows in result.

SEE ALSO
msqlQuery(3), msqlStoreResult(3), msqlFetchRow(3), msqlNumRows(3), msql(5).