note 28336 added to ref.dbase
| From: | info at rack1 dot php dot net | Date: | Thu, 09 Jan 2003 18:23:18 +0000 |
| Subject: | note 28336 added to ref.dbase | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41921@lists.php.net to get a copy of this message | ||
guillaume wrote:
07-Nov-2002 07:13
>To retrieve the name of the fields.
>
>$dbi = dbase_open($db_path, 0); // opens the dbf file
>$res = dbase_get_record_with_names($dbi, 1); // throw record 1 into associative array
>key=>value
>$cles = array_keys($res);// retrieves all the keys from previous array, which are field names.
Note that you have to remove the 'deleted' key wich is not a field name.
--
http://www.php.net/manual/en/ref.dbase.php
http://master.php.net/manage/user-notes.php?action=edit+28336
http://master.php.net/manage/user-notes.php?action=delete+28336
http://master.php.net/manage/user-notes.php?action=reject+28336