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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: janise at hello dot lv
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 17:01:33 2025 UTC