<HTML ><HEAD ><TITLE >mssql_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="Microsoft SQL Server functions" HREF="ref.mssql.html"><LINK REL="PREVIOUS" TITLE="mssql_fetch_field" HREF="function.mssql-fetch-field.html"><LINK REL="NEXT" TITLE="mssql_fetch_row" HREF="function.mssql-fetch-row.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.mssql-fetch-field.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.mssql-fetch-row.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.mssql-fetch-object" >mssql_fetch_object</A ></H1 ><DIV CLASS="refnamediv" ><A NAME="AEN16905" ></A >mssql_fetch_object -- Fetch row as object</DIV ><DIV CLASS="refsect1" ><A NAME="AEN16908" ></A ><H2 >Description</H2 ><DIV CLASS="funcsynopsis" ><P ></P ><CODE CLASS="FUNCDEF" >int mssql_fetch_object</CODE >(int result);<P ></P ></DIV ><P > Returns: An object with properties that correspond to the fetched row, or false if there are no more rows. </P ><P > <B CLASS="function" >Mssql_fetch_object()</B > is similar to <A HREF="function.mssql-fetch-array.html" ><B CLASS="function" >mssql_fetch_array()</B ></A >, with one difference - an object is returned, instead of an array. Indirectly, that means that you can only access the data by the field names, and not by their offsets (numbers are illegal property names). </P ><P > Speed-wise, the function is identical to <A HREF="function.mssql-fetch-array.html" ><B CLASS="function" >mssql_fetch_array()</B ></A >, and almost as quick as <A HREF="function.mssql-fetch-row.html" ><B CLASS="function" >mssql_fetch_row()</B ></A > (the difference is insignificant). </P ><P > See also: <A HREF="function.mssql-fetch-array.html" ><B CLASS="function" >mssql_fetch-array()</B ></A > and <A HREF="function.mssql-fetch-row.html" ><B CLASS="function" >mssql_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.mssql-fetch-field.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.mssql-fetch-row.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >mssql_fetch_field</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.mssql.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >mssql_fetch_row</TD ></TR ></TABLE ></DIV ></BODY ></HTML >