Home > PHP > Function > Mysqli > mysqli_master_query()

mysqli_master_query()

mysqli_master_query - Enforce execution of a query on the master in a master/slave setup

Syntax

bool mysqli_master_query (mysqli $link, string $query)

Arguments

  • link - The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect() is assumed. If no such link is found, it will try to create one as if mysql_connect() was called with no arguments. If no connection is found or established, an E_WARNING level error is generated.
  • query - The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect() is assumed. If no such link is found, it will try to create one as if mysql_connect() was called with no arguments. If no connection is found or established, an E_WARNING level error is generated.

Description

Version

PHP 5

Return value