Home > PHP > Function > mSQL > msql_query()

msql_query()

msql_query - Send mSQL query

Syntax

resource msql_query (string $query, resource $link_identifier)

Arguments

  • query - The SQL query.
  • link_identifier - The mSQL connection. If not specified, the last link opened by msql_connect() is assumed. If no such link is found, the function will try to establish a link as if msql_connect() was called, and use it.

Description

msql_query() sends a query to the currently active database on the server that's associated with the specified link identifier.

Version

PHP 4, 5

Return value

Returns a positive mSQL query identifier on success, or FALSE on error.