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
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: prohm at cypos dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC