PHP Manual
Prev |  | Next

# mssql_query

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

mssql_query -- Send MS SQL query

## Description

``int mssql_query` (string query [, int link_identifier])`

Returns: A positive MS SQL result identifier on success, or `FALSE` on error.

mssql_query() sends a query to the currently active database on the server that's associated with the specified link identifier. If the link identifier isn't specified, the last opened link is assumed. If no link is open, the function tries to establish a link as if mssql_connect() was called, and use it.

See also: mssql_db_query(), mssql_select_db(), and mssql_connect().

Prev | Home | Next
mssql_pconnect | Up | mssql_result