px_retrieve_record
(PECL paradox >= 1.4.0)
px_retrieve_record — Returns record of paradox database
Description
$pxdoc
, int $num
[, int $mode
= 0
] ) : arrayThis function is very similar to px_get_record() but uses internally a different approach to retrieve the data. It relies on pxlib for reading each single field value, which usually results in support for more field types.
Note:
This function is only available if pxlib >= 0.6.0 is used.
Parameters
-
pxdoc
-
Resource identifier of the paradox database as returned by px_new().
-
num
-
The record number is an artificial number counting records in the order as they are stored in the database. The first record has number 0.
-
mode
-
The optional
mode
can bePX_KEYTOLOWER
orPX_KEYTOUPPER
in order to convert the keys into lower or upper case. Ifmode
is not passed or is 0, then the key will be exactly like the field name. The element values will contain the field values. NULL values will be retained and are different from 0.0, 0 or the empty string. Fields of typePX_FIELD_TIME
will be returned as an integer counting the number of milliseconds starting at midnight. A timestamp is a floating point value also counting milliseconds starting at the beginning of julian calendar.
Return Values
Returns the num
'th record from the paradox
database. The record is returned as an associated array with its keys
being the field names.
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-px-retrieve-record.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.