#23143 [Fbk->Csd]: use of MYSQL_USE_RESULT; MYSQL_STORE_RESULT in mysql_query

From: Date: Fri, 11 Apr 2003 09:54:16 +0000
Subject: #23143 [Fbk->Csd]: use of MYSQL_USE_RESULT; MYSQL_STORE_RESULT in mysql_query
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352535@lists.php.net to get a copy of this message
ID: 23143 Updated by: derick@php.net Reported By: nightkin at msn dot com -Status: Feedback +Status: Closed Bug Type: Documentation problem Operating System: Win 2000 PHP Version: 4.3.0 New Comment: Protos are fixed too now. Previous Comments: ------------------------------------------------------------------------ [2003-04-11 04:47:43] 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-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

« previous php.doc (#969352535) next »