Minggu, 03 Juli 2022

The MySQLi Extension Function Summary 2

The MySQLi Database Extension Function in PHP Summary 2

mysqli Class Methods

OOP InterfaceProcedural InterfaceDescription
mysqli::autocommit()mysqli_autocommit()Turns on or off auto-committing database modifications
mysqli::change_user()mysqli_change_user()Changes the user of the specified database connection
mysqli::character_set_name(), mysqli::client_encodingmysqli_character_set_name()Returns the default character set for the database connection
mysqli::close()mysqli_close()Closes a previously opened database connection
mysqli::commit()mysqli_commit()Commits the current transaction
mysqli::__construct()mysqli_connect()Open a new connection to the MySQL server [Note: static (i.e. class)method]
mysqli::debug()mysqli_debug()Performs debugging operations
mysqli::dump_debug_info()mysqli_dump_debug_info()Dump debugging information into the log
mysqli::get_charset()mysqli_get_charset()Returns a character set object
mysqli::get_connection_stats()mysqli_get_connection_stats()Returns client connection statistics. Available only with mysqlnd.
mysqli::get_client_info()mysqli_get_client_info()Returns the MySQL client version as a string
mysqli::get_client_stats()mysqli_get_client_stats()Returns client per-process statistics. Available only with mysqlnd.
mysqli::get_cache_stats()mysqli_get_cache_stats()Returns client Zval cache statistics. Available only with mysqlnd.
mysqli::get_server_info()mysqli_get_server_info()Returns a string representing the version of the MySQL server that the MySQLi extension is connected to
mysqli::get_warnings()mysqli_get_warnings()NOT DOCUMENTED
mysqli::init()mysqli_init()Initializes MySQLi and returns a resource for use with mysqli_real_connect. [Not called on an object, as it returns a $mysqli object.]
mysqli::kill()mysqli_kill()Asks the server to kill a MySQL thread
mysqli::more_results()mysqli_more_results()Check if there are any more query results from a multi query
mysqli::multi_query()mysqli_multi_query()Performs a query on the database
mysqli::next_result()mysqli_next_result()Prepare next result from multi_query
mysqli::options()mysqli_options()Set options
mysqli::ping()mysqli_ping()Pings a server connection, or tries to reconnect if the connection has gone down
mysqli::prepare()mysqli_prepare()Prepare an SQL statement for execution
mysqli::query()mysqli_query()Performs a query on the database
mysqli::real_connect()mysqli_real_connect()Opens a connection to a mysql server
mysqli::real_escape_string(), mysqli::escape_string()mysqli_real_escape_string()Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection
mysqli::real_query()mysqli_real_query()Execute an SQL query
mysqli::refresh()mysqli_refresh()Flushes tables or caches, or resets the replication server information
mysqli::rollback()mysqli_rollback()Rolls back current transaction
mysqli::select_db()mysqli_select_db()Selects the default database for database queries
mysqli::set_charset()mysqli_set_charset()Sets the default client character set
mysqli::set_local_infile_default()mysqli_set_local_infile_default()Unsets user defined handler for load local infile command
mysqli::set_local_infile_handler()mysqli_set_local_infile_handler()Set callback function for LOAD DATA LOCAL INFILE command
mysqli::ssl_set()mysqli_ssl_set()Used for establishing secure connections using SSL
mysqli::stat()mysqli_stat()Gets the current system status
mysqli::stmt_init()mysqli_stmt_init()Initializes a statement and returns an object for use with mysqli_stmt_prepare
mysqli::store_result()mysqli_store_result()Transfers a result set from the last query
mysqli::thread_id()mysqli_thread_id()Returns the thread ID for the current connection
mysqli::thread_safe()mysqli_thread_safe()Returns whether thread safety is given or not
mysqli::use_result()mysqli_use_result()Initiate a result set retrieval


Related Post:

Tidak ada komentar:

Posting Komentar

Various Other Posts