May 2005
Intermediate to advanced
352 pages
14h 39m
English
mysql_num_rows( )
int mysql_num_rows(MYSQL_RES *result)
This returns the number of rows in the
results set when issued after the mysql_store_result() function. When issued after mysql_use_result(
), it returns the number of rows already fetched.
... my_ulonglong num_rows = mysql_num_rows(result); ...
See
mysql_list_fields( ) for a more elaborate example
that uses this function.
Read now
Unlock full access