Bug #3349: mysql_num_fields() function has changed - now use mysql_field_count
| From: | xendra at bigfoot dot com | Date: | Sat, 29 Jan 2000 20:41:04 +0000 |
| Subject: | Bug #3349: mysql_num_fields() function has changed - now use mysql_field_count | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15034@lists.php.net to get a copy of this message | ||
From: xendra@bigfoot.com
Operating system: Linux
PHP version: 3.0.14
PHP Bug Type: MySQL related
Bug description: mysql_num_fields() function has changed - now use mysql_field_count
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