<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Returns record of paradox database</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.px-get-parameter.html">px_get_parameter</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.px-get-schema.html">px_get_schema</a></div> <div class="up"><a href="ref.paradox.html">Paradox Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.px-get-record" class="refentry"> <div class="refnamediv"> <h1 class="refname">px_get_record</h1> <p class="verinfo">(PECL paradox >= 1.0.0)</p><p class="refpurpose"><span class="refname">px_get_record</span> — <span class="dc-title">Returns record of paradox database</span></p> </div> <div class="refsect1 description" id="refsect1-function.px-get-record-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><strong>px_get_record</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$pxdoc</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$num</code></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code><span class="initializer"> = 0</span></span> ] )</div> </div> <div class="refsect1 parameters" id="refsect1-function.px-get-record-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">pxdoc</code></em></span> <dd> <p class="para"> Resource identifier of the paradox database as returned by <span class="function"><a href="function.px-new.html" class="function">px_new()</a></span>. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">num</code></em></span> <dd> <p class="para"> 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. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">mode</code></em></span> <dd> <p class="para"> The optional <em><code class="parameter">mode</code></em> can be <strong><code>PX_KEYTOLOWER</code></strong> or <strong><code>PX_KEYTOUPPER</code></strong> in order to convert the keys of the returned array into lower or upper case. If <em><code class="parameter">mode</code></em> 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 type <strong><code>PX_FIELD_TIME</code></strong> will be returned as an integer counting the number of milliseconds starting at midnight. A timestamp (<strong><code>PX_FIELD_TIMESTAMP</code></strong>) and date (<strong><code>PX_FIELD_DATE</code></strong>) are floating point respectively int values counting milliseconds respectively days starting at the beginning of julian calendar. Use the functions <span class="function"><a href="function.px-timestamp2string.html" class="function">px-timestamp2string()</a></span> and <span class="function"><a href="function.px-date2string.html" class="function">px-date2string()</a></span> to convert them into a character representation. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.px-get-record-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the <em><code class="parameter">num</code></em>'th record from the paradox database. The record is returned as an associated array with its keys being the field names. </p> </div> <div class="refsect1 seealso" id="refsect1-function.px-get-record-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.px-retrieve-record.html" class="function" rel="rdfs-seeAlso">px_retrieve_record()</a> - Returns record of paradox database</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.px-get-parameter.html">px_get_parameter</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.px-get-schema.html">px_get_schema</a></div> <div class="up"><a href="ref.paradox.html">Paradox Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>