note 25434 rejected from function.mysql-fetch-field by nicos
| From: | nicos@php.net | Date: | Mon, 23 Sep 2002 20:49:00 +0000 |
| Subject: | note 25434 rejected from function.mysql-fetch-field by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37162@lists.php.net to get a copy of this message | ||
Something worth mentioning, and not specified in the manual, is that you must run mysql_fetch_field
before you do any other fetch operation on the mysql result resource.
Some of you may have run into trouble while trying to do a mysql_fetch_field after having run either
mysql_fetch_row, mysql_fetch_array or mysql_fetch_object.
I have not had time to look at the PHP source to verify this, but I think in order to work,
mysql_fetch_field needs to read some mysql resource link header information that is lost when
mysql_fetch_row/array/object is executed.
This was tested with version 4.3.0 DEV of PHP.