(PHP 5, PHP 7)
Returns RPL query type
int mysqli::rpl_query_type ( string $query )
Object oriented style
Procedural style
int mysqli_rpl_query_type ( mysqli $link , string $query )
Returns MYSQLI_RPL_MASTER, MYSQLI_RPL_SLAVE or MYSQLI_RPL_ADMIN depending on a query type. INSERT, UPDATE and similar are master queries, SELECT is slave, and FLUSH, REPAIR and similar are admin.
Thi