<HTML ><HEAD ><TITLE >ibase_fetch_object</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK REL="HOME" TITLE="PHP Manual" HREF="manual.html"><LINK REL="UP" TITLE="InterBase functions" HREF="ref.ibase.html"><LINK REL="PREVIOUS" TITLE="ibase_fetch_row" HREF="function.ibase-fetch-row.html"><LINK REL="NEXT" TITLE="ibase_free_result" HREF="function.ibase-free-result.html"></HEAD ><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.ibase-fetch-row.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.ibase-free-result.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.ibase-fetch-object" >ibase_fetch_object</A ></H1 ><DIV CLASS="refnamediv" ><A NAME="AEN14661" ></A >ibase_fetch_object -- Get an object from a InterBase database</DIV ><DIV CLASS="refsect1" ><A NAME="AEN14664" ></A ><H2 >Description</H2 ><DIV CLASS="funcsynopsis" ><P ></P ><CODE CLASS="FUNCDEF" >int ibase_fetch_object</CODE >(int result_id);<P ></P ></DIV ><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" ><P ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><PRE CLASS="programlisting" > 1 2 $dbh = ibase_connect ($host, $username, $password); 3 $stmt = 'SELECT * FROM tblname'; 4 $sth = ibase_query ($dbh, $stmt); 5 while ($row = ibase_fetch_object ($sth)) { 6 print $row->email . "\n"; 7 } 8 ibase_close ($dbh); 9 </PRE ></TD ></TR ></TABLE ><P ></P ></DIV > </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 WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.ibase-fetch-row.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="manual.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.ibase-free-result.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >ibase_fetch_row</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.ibase.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >ibase_free_result</TD ></TR ></TABLE ></DIV ></BODY ></HTML >