#24615 [Opn->Bgs]: mysql_fetch_array error The result type should be either MYSQL_NUM, MYSQL_ASSO

From: Date: Sat, 12 Jul 2003 03:28:43 +0000
Subject: #24615 [Opn->Bgs]: mysql_fetch_array error The result type should be either MYSQL_NUM, MYSQL_ASSO
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43789@lists.php.net to get a copy of this message
 ID:               24615
 Updated by:       philip@php.net
 Reported By:      prohm at cypos dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         MySQL related
 Operating System: Linux 2.4.21
 PHP Version:      4.3.3RC1
 New Comment:

Read The Fine Manual:
array mysql_fetch_array ( resource result [, int result_type])


Previous Comments:
------------------------------------------------------------------------

[2003-07-11 20:49:11] prohm at cypos dot de

Description:
------------
The following function in a class:

function nextrec () {
  if ($this->row = mysql_fetch_array ($this->result,$this->link))
return true;
  return false;
}

give the following error: 
Warning: mysql_fetch_array(): The result type should be either
MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH

I have used the newsest CVS-version, there is this error, too.

In the version 4.2.1 is it okay.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24615&edit=1



Thread (2 messages)

« previous php.bugs (#43789) next »