I am just newbie to the MySQL.I want to know what is the main differences in between mysql num rows and mysql affected num rows?Any example or references will be highly appreciable.
|
|
|||
|
|
|
Here's mysql_num_rows:
And here's mysql_affected_rows:
Notice that the input types are different: the first wants a result set, from which it counts the number of rows returned; the second wants a db handle. That makes sense, though, because when you |
|||
|
|