#23143 [Ana->Fbk]: use of MYSQL_USE_RESULT; MYSQL_STORE_RESULT in mysql_query
| From: | betz@php.net | Date: | Fri, 11 Apr 2003 09:47:44 +0000 |
| Subject: | #23143 [Ana->Fbk]: use of MYSQL_USE_RESULT; MYSQL_STORE_RESULT in mysql_query | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969352533@lists.php.net to get a copy of this message | ||
ID: 23143
Updated by: betz@php.net
Reported By: nightkin at msn dot com
-Status: Analyzed
+Status: Feedback
Bug Type: Documentation problem
Operating System: Win 2000
PHP Version: 4.3.0
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2003-04-10 20:57:26] 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-09 18:31:09] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23143&edit=1