Returns the number of rows in the result set.
The use of
depends on whether you used
buffer the entire result set in the statement handle. If you use
mysql_stmt_num_rows() may be
called immediately. Otherwise, the row count is unavailable
unless you count the rows as you fetch them.
intended for use with statements that return a result set, such
SELECT. For statements such as
DELETE, the number of affected
rows can be obtained with
This function was added in MySQL 4.1.1.
The number of rows in the result set.