Answers

Question and Answer:

  Home  MS SQL Server

⟩ PHP MSSQL - What Is a Result Set Object Returned by mssql_query()?

A result set object is a logical representation of data rows returned by mssql_query() function on SELECT statements. Every result set object has an internal pointer used to identify the current row in the result set. Once you get a result set object, you can use the following functions to retrieve detail information:

* mssql_free_result($res) - Closes this result set object.

* mssql_num_rows($res) - Returns the number rows in the result set.

* mssql_num_fields($res) - Returns the number fields in the result set.

* mssql_fetch_row($res) - Returns an array contains the next row indexed by field positions. The internal pointer is moved to the next row too.

 195 views

More Questions for you: