MAde it clear that mysql_num_rows only works on SELECT.

Used the statement at the end of mysql_affected_rows as
a prototype.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@24608 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Joey Smith 2000-05-21 04:05:19 +00:00
parent 9978853b9a
commit 56815ea29b

View file

@ -1151,7 +1151,9 @@ mysql_close();
</funcsynopsis>
<para>
<function>mysql_num_rows</function> returns the number of rows in
a result set.
a result set. This command is only valid for SELECT statements.
To retrieve the number of rows returned from a INSERT, UPDATE or
DELETE, use <function>mysql_affected_rows</function>.
</para>
<para>
See also: