php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3349 mysql_num_fields() function has changed - now use mysql_field_count
Submitted: 2000-01-29 15:41 UTC Modified: 2000-01-29 17:18 UTC
From: xendra at bigfoot dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.14 OS: Linux
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: xendra at bigfoot dot com
New email:
PHP Version: OS:

 

 [2000-01-29 15:41 UTC] xendra at bigfoot dot com
I've been studying the MySQL documentation and found the following:
------------------
4.16.1 Upgrading from a 3.22  version to a 3.23

<...removed for brevity>

The following lists what you have to watch out for when upgrading to 3.23

<...removed for brevity>

o mysql_num_fields() can no longer be used on a MYSQL* object (it's now a function that takes MYSQL_RES* as an argument. You should now use mysql_field_count() instead.
------------------

It's in the on-line MySQL documentation...

My host shows that we are using PHP 3.06, which isn't in your list, so I selected the 3.0.14 version. They will be upgrading to MySQL 3.23 shortly, so this concerns me that a number of my scripts will break; at least the ones that rely on mysql_num_fields.

Jeff

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-29 17:18 UTC] rasmus at cvs dot php dot net
They can upgrade MySQL without recompiling PHP and it should still work.  A 3.22 MySQL client can still talk to a 3.23 MySQL server.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 05:00:01 2026 UTC