Re: name of field

From: Date: Fri, 28 Sep 2001 11:59:49 +0000
Subject: Re: name of field
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-12817@lists.php.net to get a copy of this message
http://www.php.net/manual/en/function.mysql-field-name.php Best regards Attila Strauss > how can i get the name of fields in a record > > $result=mysql_query($sql,$conn); > $row=mysql_fetch_row($result); > $record_length=count($row); > for($i=0;$i<$record_length;$i++) > { > > // here i wanna echo the field name > echo $row[$i]; > } > > > > ------------------------------------------------------------ > ------------------------------------------------------------ > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#12817) next »