note 11979 added to function.dbase-get-record-with-names.php
| From: | gravitiee at hotmail dot com | Date: | Fri, 16 Mar 2001 04:33:51 +0000 |
| Subject: | note 11979 added to function.dbase-get-record-with-names.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12459@lists.php.net to get a copy of this message | ||
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 Capitol 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'];
http://www.php.net/manual/en/function.dbase-get-record-with-names.php