Descriptionresouce msql_db_query ( string database, string query [, resource link_identifier])
Returns a positive mSQL query identifier to the query result, or FALSE on error.
msql_db_query() selects a database and executes a query on it. If the optional link_identifier is not specified, the function will try to find an open link to the mSQL server; if no such link is found it will try to create one as if msql_connect() was called with no arguments.
See also msql_connect().