php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36865 Argument for mysql_affected_rows
Submitted: 2006-03-26 20:27 UTC Modified: 2006-03-26 23:17 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: janise at hello dot lv Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 - 11 = ?
Subscribe to this entry?

 
 [2006-03-26 20:27 UTC] janise at hello dot lv
Description:
------------
On this page:
http://www.php.net/manual/en/function.msql-affected-rows.php

the argument is explained as the result resource (returned by "mysql_query"). But for me it didn't work; instead it worked if I gave the mySQL link identifier (returned by "mysql_connect").

I see that this bug has been explained already to solutions (now when I try to submit), but the documentation is still wrong.

Thanks!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-26 20:34 UTC] bjori@php.net
MySQL != mSQL

mysql_affected_rows() takes (optionally) link identifier (mysql_connect()).

msql_affacted_rows() takes result set (msql_query()).
 [2006-03-26 23:17 UTC] janise at hello dot lv
OK, sorry, I searched for "mysql affec" and clicked on the first match.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 08:01:30 2024 UTC