mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
9978853b9a
commit
56815ea29b
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue