php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24615 mysql_fetch_array error The result type should be either MYSQL_NUM, MYSQL_ASSO
Submitted: 2003-07-11 20:49 UTC Modified: 2003-07-11 22:28 UTC
From: prohm at cypos dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.3RC1 OS: Linux 2.4.21
Private report: No CVE-ID: None
 [2003-07-11 20:49 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-11 22:28 UTC] philip@php.net
Read The Fine Manual:
array mysql_fetch_array ( resource result [, int result_type])
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 18:01:33 2024 UTC