<HTML ><HEAD ><TITLE >ibase_fetch_object</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual de PHP" HREF="index.html"><LINK REL="UP" TITLE="Funciones InterBase" HREF="ref.ibase.html"><LINK REL="PREVIOUS" TITLE="ibase_execute" HREF="function.ibase-execute.html"><LINK REL="NEXT" TITLE="ibase_fetch_row" HREF="function.ibase-fetch-row.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></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 de PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ibase-execute.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.ibase-fetch-row.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.ibase-fetch-object" ></A >ibase_fetch_object</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN31855" ></A ><P > (PHP 3>= 3.0.7, PHP 4 )</P >ibase_fetch_object -- Get an object from a InterBase database</DIV ><DIV CLASS="refsect1" ><A NAME="AEN31858" ></A ><H2 >Description</H2 >object <B CLASS="methodname" >ibase_fetch_object</B > ( int result_id)<BR ></BR ><P > Fetches a row as a pseudo-object from a <TT CLASS="parameter" ><I >result_id</I ></TT > obtained either by <A HREF="function.ibase-query.html" ><B CLASS="function" >ibase_query()</B ></A > or <A HREF="function.ibase-execute.html" ><B CLASS="function" >ibase_execute()</B ></A >. <DIV CLASS="informalexample" ><A NAME="AEN31870" ></A ><P ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="php" ><php $dbh = ibase_connect ($host, $username, $password); $stmt = 'SELECT * FROM tblname'; $sth = ibase_query ($dbh, $stmt); while ($row = ibase_fetch_object ($sth)) { print $row->email . "\n"; } ibase_close ($dbh); ?></PRE ></TD ></TR ></TABLE ><P ></P ></DIV > </P ><P > Subsequent call to <B CLASS="function" >ibase_fetch_object()</B > would return the next row in the result set, or <TT CLASS="constant" ><B >FALSE</B ></TT > if there are no more rows. </P ><P > See also <A HREF="function.ibase-fetch-row.html" ><B CLASS="function" >ibase_fetch_row()</B ></A >. </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.ibase-execute.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Inicio</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ibase-fetch-row.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ibase_execute</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.ibase.html" ACCESSKEY="U" >Subir</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ibase_fetch_row</TD ></TR ></TABLE ></DIV ></BODY ></HTML >