mysql_query

mysql_query -- send MySQL query

Description

int mysql_query(string query, int [link_identifier] );

Returns: A positive MySQL result identifier on success, or false on error.

mysql_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 mysql_connect() was called, and use it.

See also: mysql_db_query(), mysql_select_db(), and mysql_connect().