note 11979 modified in function.dbase-get-record-with-names by derick
| From: | derick@php.net | Date: | Sat, 03 May 2003 11:21:17 +0000 |
| Subject: | note 11979 modified in function.dbase-get-record-with-names by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47417@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 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'];
--was--
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