FUNCTION NAME |
FUNCTION DESCRIPTION |
FUNCTION SYNTAX |
FUNCTION RETURN VALUE |
mysqli::reap_async_query()
mysqli_reap_async_query()
[mysqli::reap_async_query — mysqli_reap_async_query – Get result from async query] |
This function – only available with mysqlnd – is used to get (‘reap’) the result from an async query. |
Object-oriented style:
$mysqli->reap_async_query();
Procedural style:
mysqli_reap_async_query(mysqli_link);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style.] |
mysqli::reap_async_query : returns a mysqli_result on success; FALSE on failure. |
mysqli::refresh()
mysqli_refresh()
[mysqli::refresh — mysqli_refresh – Refreshes] |
This function flushes tables and caches, or resets [generally ‘refreshes’] the replication server information. |
Object-oriented style:
$mysqli->refresh(options);
Procedural style:
mysqli_refresh(mysqli_link, options);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. options: specifies the options to refresh, using the MYSQLI_REFRESH_* constants detailed within the MySQLi documentation.] |
mysqli::refresh : returns TRUE if the refresh was a success; FALSE otherwise. |
mysqli::release_savepoint()
mysqli_release_savepoint()
[mysqli::release_savepoint — mysqli_release_savepoint – Removes the named savepoint from the set of savepoints of the current transaction] |
This function – not currently documented in the official literature available at php.net – removes [‘releases’] savepoint from the set of savepoints of the current transaction. |
Object-oriented style:
$mysqli->release_savepoint(savepoint);
Procedural style:
mysqli_release_savepoint(mysqli_link, savepoint);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. savepoint: specifies the savepoint to remove from the set of savepoints of the current transaction.] |
mysqli::release_savepoint() : returns TRUE on success; FALSE otherwise. |
mysqli::rollback()
mysqli_rollback()
[mysqli::rollback — mysqli_rollback – Rolls back current transaction] |
This function rolls back the current transaction for the database. |
Object-oriented style:
$mysqli->rollback(flags [optional parameter, with a default value of 0], name [optional parameter]);
Procedural style:
mysqli_rollback(mysqli_link, flags [optional parameter, with a default value of 0], name [optional parameter]);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. flags: a bitmask of MYSQLI_TRANS_COR_* constants. name: if provided, then ROLLBACK name is performed.] |
mysqli::rollback() : returns TRUE on success; FALSE otherwise. |
mysqli::rpl_query_type()
mysqli_rpl_query_type()
[mysqli::rpl_query_type — mysqli_rpl_query_type – Returns RPL query type] |
This function – deprecated and removed as of PHP 5.3.0 and not currently documented by the literature at php.net – returns an integer representation of one of the following constants: MYSQLI_RPL_MASTER [e.g. for INSERT / UPDATE queries]; MYSQLI_RPL_SLAVE [e.g. for SELECT queries]; or MYSQLI_RPL_ADMIN [e.g. FLUSH / REPAIR ] depending on the query type. |
Object-oriented style:
$mysqli->rpl_query_type(query);
Procedural style:
mysqli_rpl_query_type(mysqli_link, query);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. query: the query to categorize.] |
mysqli::rpl_query_type() : returns an integer representation of a named query type constant. |
mysqli::savepoint()
mysqli_savepoint()
[mysqli::savepoint — mysqli_savepoint – Set a named transaction savepoint] |
This function – not currently documented by the literature at php.net – sets a named transaction savepoint. |
Object-oriented style:
$mysqli->savepoint(savepoint);
Procedural style:
mysqli_savepoint(mysqli_link, savepoint);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. savepoint: a string defining the name of the savepoint.] |
mysqli::savepoint() : returns TRUE on success; FALSE on failure. |
mysqli::select_db()
mysqli_select_db()
[mysqli::select_db — mysqli_select_db – Selects the default database for database queries] |
This function – used to change the default database for the connection – selects the default database to be used when performing queries against the database connection. The default database is initially specified via the fourth parameter of the mysqli_connect() function. |
Object-oriented style:
$mysqli->select_db(database);
Procedural style:
mysqli_select_db(mysqli_link, database);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. database: a string defining the name of the database.] |
mysqli::select_db() : returns TRUE on success; FALSE on failure. |
mysqli::send_query()
mysqli_send_query()
[mysqli::send_query — mysqli_send_query – Send the query and return] |
This function – deprecated as of PHP 5.3.0 and not documented in the literature at php.net – is presumably used to send the query and return. |
Object-oriented style:
$mysqli->send_query(query);
Procedural style:
mysqli_send_query(mysqli_link, query);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. query: a valid SQL query string.] |
mysqli::send_query() : returns TRUE on success; FALSE on failure. |
mysqli::set_charset()
mysqli_set_charset()
[mysqli::set_charset — mysqli_set_charset – Sets the default client character set] |
This function sets the default character set to be used when sending information to and from the database server. This is the preferred way to change the charset; using mysqli_query('SET NAMES utf8'); is not recommended. |
Object-oriented style:
$mysqli->set_charset(charset);
Procedural style:
mysqli_set_charset(mysqli_link, charset);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style. charset: the charset to be set as default.] |
mysqli::set_charset() : returns TRUE on success; FALSE on failure. To use this function on Windows you must use MySQL client library version 4.1.11+; for MySQL 5.0 you need 5.0.6+. |
mysqli::set_local_infile_default()
mysqli_set_local_infile_default()
[mysqli::set_local_infile_default — mysqli_set_local_infile_default – Unsets user defined handler for load local infile command] |
This function restores [‘sets’] the local infile default handler; the LOAD DATA INFILE LOCAL handler previously set with mysqli_set_local_infile_handler() is deactivated. |
Object-oriented style:
$mysqli->set_local_infile_default();
Procedural style:
mysqli_set_local_infile_default(mysqli_link);
[mysqli_link: a link identifier returned by mysqli_connect() or mysqli_init() ; only required for the procedural style.] |
mysqli::set_local_infile_default() : no value is returned. |