The MySQLi Extension Function SummaryMySQLi ClassOOP InterfaceProcedural InterfaceAlias (Do not use)DescriptionProperties$mysqli->affected_rowsmysqli_affected_rowsN/AGets the number of affected rows in a previous MySQL operation$mysqli->connect_errnomysqli_connect_errnoN/AReturns the error code from last connect call$mysqli->connect_errormysqli_connect_errorN/AReturns a string description of the last connect error$mysqli->errnomysqli_errnoN/AReturns the error code for the most recent function call$mysqli->errormysqli_errorN/AReturns a string description of the last error$mysqli->field_countmysqli_field_countN/AReturns the number of columns for the most recent query$mysqli->host_infomysqli_get_host_infoN/AReturns a string representing the type of connection used$mysqli->protocol_versionmysqli_get_proto_infoN/AReturns the version of the MySQL protocol used$mysqli->server_infomysqli_get_server_infoN/AReturns the version of the MySQL server$mysqli->server_versionmysqli_get_server_versionN/AReturns the version of the MySQL server as an integer$mysqli->infomysqli_infoN/ARetrieves information about the most recently executed query$mysqli->insert_idmysqli_insert_idN/AReturns the auto generated id used in the last query$mysqli->sqlstatemysqli_sqlstateN/AReturns the SQLSTATE error from previous MySQL operation$mysqli->warning_countmysqli_warning_countN/AReturns the number of warnings from the last query for the given linkMethodsmysqli->autocommitmysqli_autocommitN/ATurns on or off auto-commiting database modificationsmysqli->change_usermysqli_change_userN/AChanges the user of the specified database connectionmysqli->character_set_name,
mysqli->client_encodingmysqli_character_set_namemysqli_client_encodingReturns the default character set for the database connectionmysqli->closemysqli_closeN/ACloses a previously opened database connectionmysqli->commitmysqli_commitN/ACommits the current transactionmysqli::__constructmysqli_connectN/AOpen a new connection to the MySQL server [Note: static (i.e. class)
method]mysqli->debugmysqli_debugN/APerforms debugging operationsmysqli->dump_debug_infomysqli_dump_debug_infoN/ADump debugging information into the logmysqli->get_charsetmysqli_get_charsetN/AReturns a character set objectmysqli->get_client_infomysqli_get_client_infoN/AReturns the MySQL client version as a stringmysqli->get_client_versionmysqli_get_client_versionN/AGet MySQL client info$mysqli->get_connection_stats()mysqli_get_connection_stats()N/ANOT DOCUMENTED [mysqlnd only]mysqli->get_server_infomysqli_get_server_infoN/ANOT DOCUMENTEDmysqli->get_warningsmysqli_get_warningsN/ANOT DOCUMENTEDmysqli_initmysqli_initN/AInitializes MySQLi and returns a resource for use with
mysqli_real_connect. [Not called on an object, as it returns a
$mysqli object.]mysqli->killmysqli_killN/AAsks the server to kill a MySQL threadmysqli->more_resultsmysqli_more_resultsN/ACheck if there are any more query results from a multi querymysqli->multi_querymysqli_multi_queryN/APerforms a query on the databasemysqli->next_resultmysqli_next_resultN/APrepare next result from multi_querymysqli->optionsmysqli_optionsmysqli_set_optSet optionsmysqli->pingmysqli_pingN/APings a server connection, or tries to reconnect if the connection has
gone downmysqli->preparemysqli_prepareN/APrepare a SQL statement for executionmysqli->querymysqli_queryN/APerforms a query on the databasemysqli->real_connectmysqli_real_connectN/AOpens a connection to a mysql servermysqli->real_escape_string,
mysqli->escape_stringmysqli_real_escape_stringmysqli_escape_stringEscapes special characters in a string for use in a SQL statement,
taking into account the current charset of the connectionmysqli->real_querymysqli_real_queryN/AExecute an SQL querymysqli->rollbackmysqli_rollbackN/ARolls back current transactionmysqli->select_dbmysqli_select_dbN/ASelects the default database for database queriesmysqli->set_charsetmysqli_set_charsetN/ASets the default client character setmysqli->set_local_infile_defaultmysqli_set_local_infile_defaultN/AUnsets user defined handler for load local infile commandmysqli->set_local_infile_handlermysqli_set_local_infile_handlerN/ASet callback function for LOAD DATA LOCAL INFILE commandmysqli->ssl_setmysqli_ssl_setN/AUsed for establishing secure connections using SSLmysqli->statmysqli_statN/AGets the current system statusmysqli->stmt_initmysqli_stmt_initN/AInitializes a statement and returns an object for use with
mysqli_stmt_preparemysqli->store_resultmysqli_store_resultN/ATransfers a result set from the last querymysqli->thread_idmysqli_thread_idN/AReturns the thread ID for the current connectionmysqli->thread_safemysqli_thread_safeN/AReturns whether thread safety is given or notmysqli->use_resultmysqli_use_resultN/AInitiate a result set retrievalMySQL_STMTOOP InterfaceProcedural InterfaceAlias (Do not use)DescriptionProperties$mysqli_stmt->affected_rowsmysqli_stmt_affected_rowsN/AReturns the total number of rows changed, deleted, or inserted by the
last executed statement$mysqli_stmt->errnomysqli_stmt_errnoN/AReturns the error code for the most recent statement call$mysqli_stmt->errormysqli_stmt_errorN/AReturns a string description for last statement error$mysqli_stmt->field_countmysqli_stmt_field_countN/AReturns the number of field in the given statement - not documented$mysqli_stmt->insert_idmysqli_stmt_insert_idN/AGet the ID generated from the previous INSERT operation$mysqli_stmt->num_rowsmysqli_stmt_num_rowsN/AReturn the number of rows in statements result set$mysqli_stmt->param_countmysqli_stmt_param_countmysqli_param_countReturns the number of parameter for the given statement$mysqli_stmt->sqlstatemysqli_stmt_sqlstateN/AReturns SQLSTATE error from previous statement operationMethodsmysqli_stmt->attr_getmysqli_stmt_attr_getN/AUsed to get the current value of a statement attributemysqli_stmt->attr_setmysqli_stmt_attr_setN/AUsed to modify the behavior of a prepared statementmysqli_stmt->bind_parammysqli_stmt_bind_parammysqli_bind_paramBinds variables to a prepared statement as parametersmysqli_stmt->bind_resultmysqli_stmt_bind_resultmysqli_bind_resultBinds variables to a prepared statement for result storagemysqli_stmt->closemysqli_stmt_closeN/ACloses a prepared statementmysqli_stmt->data_seekmysqli_stmt_data_seekN/ASeeks to an arbitrary row in statement result setmysqli_stmt->executemysqli_stmt_executemysqli_executeExecutes a prepared Querymysqli_stmt->fetchmysqli_stmt_fetchmysqli_fetchFetch results from a prepared statement into the bound variablesmysqli_stmt->free_resultmysqli_stmt_free_resultN/AFrees stored result memory for the given statement handle$mysqli_stmt->get_result()mysqli_stmt_get_resultN/ANOT DOCUMENTED [mysqlnd only]mysqli_stmt->get_warningsmysqli_stmt_get_warningsN/ANOT DOCUMENTED$mysqli_stmt->more_results()mysqli_stmt_more_results()N/ANOT DOCUMENTED [mysqlnd only]$mysqli_stmt->next_result()mysqli_stmt_next_result()N/ANOT DOCUMENTED [mysqlnd only]mysqli_stmt->num_rowsmysqli_stmt_num_rowsN/ANOT DOCUMENTED [see also num_rows property]mysqli_stmt->preparemysqli_stmt_prepareN/APrepare a SQL statement for executionmysqli_stmt->resetmysqli_stmt_resetN/AResets a prepared statementmysqli_stmt->result_metadatamysqli_stmt_result_metadatamysqli_get_metadataReturns result set metadata from a prepared statementmysqli_stmt->send_long_datamysqli_stmt_send_long_datamysqli_send_long_dataSend data in blocksmysqli_stmt->store_resultmysqli_stmt_store_resultN/ATransfers a result set from a prepared statementMySQLi_RESULTOOP InterfaceProcedural InterfaceAlias (Do not use)DescriptionProperties$mysqli_result->current_fieldmysqli_field_tellN/AGet current field offset of a result pointer$mysqli_result->field_countmysqli_num_fieldsN/AGet the number of fields in a result$mysqli_result->lengthsmysqli_fetch_lengthsN/AReturns the lengths of the columns of the current row in the result set$mysqli_result->num_rowsmysqli_num_rowsN/AGets the number of rows in a resultMethodsmysqli_result->data_seekmysqli_data_seekN/AAdjusts the result pointer to an arbitary row in the resultmysqli_result->fetch_allmysqli_fetch_allN/AFetches all result rows and returns the result set as an associative array, a numeric array, or both. MySQL Native Driver Onlymysqli_result->fetch_arraymysqli_fetch_arrayN/AFetch a result row as an associative, a numeric array, or bothmysqli_result->fetch_assocmysqli_fetch_assocN/AFetch a result row as an associative arraymysqli_result->fetch_field_directmysqli_fetch_field_directN/AFetch meta-data for a single fieldmysqli_result->fetch_fieldmysqli_fetch_fieldN/AReturns the next field in the result setmysqli_result->fetch_fieldsmysqli_fetch_fieldsN/AReturns an array of objects representing the fields in a result setmysqli_result->fetch_objectmysqli_fetch_objectN/AReturns the current row of a result set as an objectmysqli_result->fetch_rowmysqli_fetch_rowN/AGet a result row as an enumerated arraymysqli_result->field_seekmysqli_field_seekN/ASet result pointer to a specified field offsetmysqli_result->free,
mysqli_result->close,
mysqli_result->free_resultmysqli_free_resultN/AFrees the memory associated with a resultMySQL_DriverOOP InterfaceProcedural InterfaceAlias (Do not use)DescriptionPropertiesN/AMethodsmysqli_driver->embedded_server_endmysqli_embedded_server_endN/ANOT DOCUMENTEDmysqli_driver->embedded_server_startmysqli_embedded_server_startN/ANOT DOCUMENTED
Alias functions are provided for backward compatibility purposes
only. Do not use them in new projects.