I want to know what is the difference in between mysql_num_rows
and mysql_affected_rows
.How to know when it should use.Any help and suggestions will be highly appreciable.Examples are most welcome.
Use mysql_num_rows
for SELECT
queries while mysql_affected_rows
for UPDATE
and DELETE
queries.
mysql_num_rows
tells you how many records were returned from a SELECT
querymysql_affected_rows
tells you how many rows were UPDATE
ed or DELETE
edIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With