php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23143 use of MYSQL_USE_RESULT; MYSQL_STORE_RESULT in mysql_query
Submitted: 2003-04-09 18:31 UTC Modified: 2003-04-12 02:01 UTC
From: nightkin at msn dot com Assigned: georg (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.0 OS: Win 2000
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: nightkin at msn dot com
New email:
PHP Version: OS:

 

 [2003-04-09 18:31 UTC] nightkin at msn dot com
seems that these constants (MYSQL_USE_RESULT; MYSQL_STORE_RESULT) are not defined!!

at least php issues a notice when i try to use them and later when i call:

mysql_query($sql, $conn, $resultMode) 


it says:

wrong parameter count for mysql_query()

Thanks

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-10 20:57 UTC] iliaa@php.net
The documentation is wrong, there are 2 functions, mysql_query(), which will buffer the results and mysql_unbuffered_query(), which will not ;). The 3rd parameter to those two functions is a documentation snafoo, they only accept 2 arguments each. You should use mysql_query() or mysql_unbuffered_query() depending on how you want to fetch data.
 [2003-04-11 04:47 UTC] betz@php.net
so it seems the protos in the sources are incorrect and  
should be fixed, because they read:  
proto resource mysql_(unbufferd)_query(string query [, int  
link_identifier] [, int result_mode])  
  
anyway, the docs are fixed and the corrections will show 
up soon.  
 
 [2003-04-11 04:54 UTC] derick@php.net
Protos are fixed too now.
 [2003-04-11 16:03 UTC] georg@php.net
Should be removed from the documentation. Please use 
mysql_query/mysql_unbuffered_query instead.

Assigned to myself

Georg

 [2003-04-12 02:01 UTC] georg@php.net
didn't see that Friedhelm and Derick fixed it already :)
 [2020-02-07 09:57 UTC] phpdocbot@php.net
Automatic comment on behalf of georg
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=aa74a7b74d06a281a552ff59c765faeaa692adda
Log: fixed #23143
 [2020-12-30 11:15 UTC] nikic@php.net
Automatic comment on behalf of georg
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=37437ae9fffe9353d8c8fb3c8a55f355213f5072
Log: fixed #23143
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 22:00:01 2026 UTC