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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 07:01:32 2024 UTC