name of field
| From: | its me | Date: | Fri, 28 Sep 2001 11:35:44 +0000 |
| Subject: | name of field | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12816@lists.php.net to get a copy of this message | ||
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];
}
------------------------------------------------------------
------------------------------------------------------------