PHP Manual
Prev |  | Next

# mysql_db_query

mysql_db_query -- Send an MySQL query to MySQL

## Description

`int mysql_db_query`(string database, string query, int [link_identifier] );

Returns: A positive MySQL result identifier to the query result, or false on error.

mysql_db_query() selects a database and executes a query on it. If the optional link identifier isn't specified, the function will try to find an open link to the MySQL server and if no such link is found it'll try to create one as if mysql_connect() was called with no arguments

See also mysql_connect().

For downwards compatibility mysql() can also be used.

Prev | Home | Next
mysql_data_seek | Up | mysql_drop_db