[PHP-DEV] PHP 4.0 Bug #2854 Updated: mysql_fetch_field won't return object after fetch_row From: Bug Database (php-dev <email protected>)
Date: 11/28/99

ID: 2854
Updated by: rasmus
Reported By: john-marc <email protected>
Status: Closed
Bug Type: MySQL related
Assigned To:
Comments:

Your code doesn't make a lot of sense. It isn't like the field names are going to change from one row to the next, so there is no point putting the mysql_fetch_field() inside the row loop.
And if all you want is the name, see the mysql_fetch_array() function. Call it with a second arg of MYSQL_ASSOC

Full Bug description available at: http://bugs.php.net/?id=2854

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>