PHP 4.0 Bug #2854 Updated: mysql_fetch_field won't return object after fetch_row

From: Date: Sun, 28 Nov 1999 22:01:54 +0000
Subject: PHP 4.0 Bug #2854 Updated: mysql_fetch_field won't return object after fetch_row
Groups: php.dev 
Request: Send a blank email to php-dev+get-13241@lists.php.net to get a copy of this message
ID: 2854 Updated by: rasmus Reported By: john-marc@usa.net 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

« previous php.dev (#13241) next »