- APHP 5.0
- BPHP 5.1
- CPHP 5.2
- DPHP 5.3
Time Taken:
Correct Answer:
Wrong Answer:
Percentage: %
The method num_rows() is only useful for determining the number of rows retrieved by a SELECT query. But to retrieve the number of rows affected by INSERT, UPDATE, or DELETE query, use affected_rows().
Their prototype is as follows-
Its prototype looks like-
An example of this-