ExamVeda
Login
Home
This question belongs to PHP Databases Handling
Databases Handling
?

Which one of the following method is used to retrieve the number of rows affected by an INSERT, UPDATE, or DELETE query?

Answer & Solution
Correct Answer: Option B
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().
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.