★ wanayoo — archive 1999 http://www.php.net/manual/function.mssql-fetch-object.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to MS SQL Server
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
MS SQL Server
* mssql_close
* mssql_connect
* mssql_data_seek
* mssql_fetch_array
* mssql_fetch_field
* mssql_fetch_object
* mssql_fetch_row
* mssql_field_length
* mssql_field_name
* mssql_field_seek
* mssql_field_type
* mssql_free_result
* mssql_get_last_message
* mssql_min_error_severity
* mssql_min_message_severity
* mssql_num_fields
* mssql_num_rows
* mssql_pconnect
* mssql_query
* mssql_result
* mssql_select_db
Manual: mssql_fetch_object
View the source code for this pageSearch the site



Previous page
 mssql_fetch_field
 Updated
Sat, 12 Aug 2000
mssql_fetch_row 
Next page


mssql_fetch_object

(PHP3 , PHP4 )

mssql_fetch_object -- Fetch row as object

Description

int mssql_fetch_object (int result)

Returns: An object with properties that correspond to the fetched row, or false if there are no more rows.

Mssql_fetch_object() is similar to mssql_fetch_array(), 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).

Speed-wise, the function is identical to mssql_fetch_array(), and almost as quick as mssql_fetch_row() (the difference is insignificant).

See also: mssql_fetch-array() and mssql_fetch-row().


User Contributed Notes: mssql_fetch_object


jjensen@operamail.com
06-Jul-2000 05:27
The mssql_fetch_object does not work with php4pl2. A Statement like:
<PRE>
$Key_Data = mssql_fetch_object($result);
</PRE>
Will return absolutely nothing. If I try to access $Key_Data, I get an Access Violation error. So, I use mssql_fetch_array(). Very bogus, since I will have to rewrite all my code.



 About Notes


Previous page
 mssql_fetch_field
 Updated
Sat, 12 Aug 2000
mssql_fetch_row 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.