note 11979 deleted from function.dbase-get-record-with-names by didou
| From: | didou@php.net | Date: | Sat, 29 Jan 2005 23:30:39 +0000 |
| Subject: | note 11979 deleted from function.dbase-get-record-with-names by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-84177@lists.php.net to get a copy of this message | ||
Note Submitter: gravitiee at hotmail dot com
----
When using this function to grab a record from a FoxPro(might be same for any dbase .dbf, I only
tested with FoxPro) database each of the fields names in the array is in all Capital letters. For
Example, if you are reading a record from a table where the first field is 'item' you
would need to do the following to access the data.
$dbf = dbase_open('foxpro.dbf',0);
$drec = dbase_get_record_with_names($dbf,1);
// ITEM must be in all caps, otherwise
// you get nothing
echo $drec['ITEM'];