Re: is the array from mysql_fetch_array really an array (or does it just pretend ) ???? Creating an array with mysql table fieldnames in it....

From: Date: Tue, 25 Jul 2000 15:06:45 +0000
Subject: Re: is the array from mysql_fetch_array really an array (or does it just pretend ) ???? Creating an array with mysql table fieldnames in it....
Groups: php.db php.general 
Request: Send a blank email to php-general+get-8054@lists.php.net to get a copy of this message
whoops i meant mysql_fetch_field, not mysql_fetch_array..... that'll teach me to make loud headlines without reading them over .... anyways, problem solved thanks to gautam.... solution: mysql_fetch_field returns an object; the field name can read with: while ($object= mysql_fetch_field) { $fieldname= $object->name; } thanks again to gautam for this one cheers to all, nick

« previous php.general (#8054) next »