<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >px_retrieve_record</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Manual do PHP" HREF="index.html"><LINK REL="UP" TITLE="Paradox File Access" HREF="ref.paradox.html"><LINK REL="PREVIOUS" TITLE="px_put_record" HREF="function.px-put-record.html"><LINK REL="NEXT" TITLE="px_set_blob_file" HREF="function.px-set-blob-file.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual do PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.px-put-record.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.px-set-blob-file.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.px-retrieve-record" ></A >px_retrieve_record</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN163085" ></A ><P > (PECL)</P >px_retrieve_record -- Returns record of paradox database</DIV ><DIV CLASS="refsect1" ><A NAME="AEN163088" ></A ><H2 >Descrição</H2 >array <B CLASS="methodname" >px_retrieve_record</B > ( resource pxdoc, int num [, int mode] )<BR ></BR ><P > This function is very similar to <A HREF="function.px-get-record.html" ><B CLASS="function" >px_get_record()</B ></A > 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. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Nota: </B > This function is only available if pxlib >= 0.6.0 is used. </P ></BLOCKQUOTE ></DIV ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN163106" ></A ><H2 >Parâmetros</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" >pxdoc</CODE ></DT ><DD ><P > Resource identifier of the paradox database as returned by <A HREF="function.px-new.html" ><B CLASS="function" >px_new()</B ></A >. </P ></DD ><DT ><CODE CLASS="parameter" >num</CODE ></DT ><DD ><P > 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 ><CODE CLASS="parameter" >mode</CODE ></DT ><DD ><P > The optional <CODE CLASS="parameter" >mode</CODE > can be <TT CLASS="constant" ><B >PX_KEYTOLOWER</B ></TT > or <TT CLASS="constant" ><B >PX_KEYTOUPPER</B ></TT > in order to convert the keys into lower or upper case. If <CODE CLASS="parameter" >mode</CODE > 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 <TT CLASS="constant" ><B >PX_FIELD_TIME</B ></TT > 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. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN163131" ></A ><H2 >Valores de retornado</H2 ><P > Returns the <CODE CLASS="parameter" >num</CODE >'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" ><A NAME="AEN163135" ></A ><H2 >Veja também</H2 ><P > <P ></P ><TABLE BORDER="0" ><TBODY ><TR ><TD ><A HREF="function.px-get-record.html" ><B CLASS="function" >px_get_record()</B ></A ></TD ></TR ></TBODY ></TABLE ><P ></P > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.px-put-record.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Principal</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.px-set-blob-file.html" ACCESSKEY="N" >Próxima</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >px_put_record</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.paradox.html" ACCESSKEY="U" >Acima</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >px_set_blob_file</TD ></TR ></TABLE ></DIV ></BODY ></HTML >