★ wanayoo — archive 1999 http://il.php.net/manual/function.mssql-result.php3Nouvelle recherche | Portail wanayoo

PHP3 Home Page

Manual Table of Contents
Up to MS SQL Server
Quick Reference
MS SQL Server
* mssql_affected_rows
* mssql_close
* mssql_connect
* mssql_data_seek
* mssql_fetch_array
* mssql_fetch_field
* mssql_fetch_object
* mssql_fetch_row
* mssql_field_seek
* mssql_free_result
* mssql_num_fields
* mssql_num_rows
* mssql_pconnect
* mssql_query
* mssql_result
* mssql_select_db
Manual: mssql_result
View the source code for this pageSearch the site



Previous page
 mssql_query
mssql_select_db 
Next page


mssql_result

mssql_result -- get result data

Description

int mssql_result(int result, int i, mixed field);

Returns: The contents of the cell at the row and offset in the specified MS SQL result set.

mssql_result() returns the contents of one cell from a MS SQL result set. The field argument can be the field's offset, or the field's name, or the field's table dot field's name (fieldname.tablename). If the column name has been aliased ('select foo as bar from...'), use the alias instead of the column name.

When working on large result sets, you should consider using one of the functions that fetch an entire row (specified below). As these functions return the contents of multiple cells in one function call, they're MUCH quicker than mssql_result(). Also, note that specifying a numeric offset for the field argument is much quicker than specifying a fieldname or tablename.fieldname argument.

Recommended high-performance alternatives: mssql_fetch_row(), mssql_fetch_array(), and mssql_fetch_object().


 About Notes


Previous page
 mssql_query
mssql_select_db 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
Israel
Some elements of this website are subject to copyright.