Syntax

my_ulonglong mysql_num_rows(MYSQL_RES * );

Description

Returns number of rows in a result set.

The behaviour of mysql_num_rows() depends on whether buffered or unbuffered result sets are being used. For unbuffered result sets, mysql_num_rows() will not return the correct number of rows until all the rows in the result have been retrieved.

See also

Comments

Comments loading...
Loading