The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
MYSQLI_READ_DEFAULT_GROUP
Read options from the named group from my.cnf
or the file specified with MYSQLI_READ_DEFAULT_FILE
MYSQLI_READ_DEFAULT_FILERead options from the named option file instead of from my.cnf
MYSQLI_OPT_CONNECT_TIMEOUTConnect timeout in seconds
MYSQLI_OPT_LOCAL_INFILEEnables command LOAD LOCAL INFILE
MYSQLI_INIT_COMMANDCommand to execute when connecting to MySQL server. Will automatically be re-executed when reconnecting.
MYSQLI_CLIENT_SSLUse SSL (encrypted protocol). This option should not be set by application programs; it is set internally in the MySQL client library
MYSQLI_CLIENT_COMPRESSUse compression protocol
MYSQLI_CLIENT_INTERACTIVEAllow interactive_timeout seconds (instead of wait_timeout seconds) of inactivity before closing the connection. The client's session wait_timeout variable will be set to the value of the session interactive_timeout variable.
MYSQLI_CLIENT_IGNORE_SPACEAllow spaces after function names. Makes all functions names reserved words.
MYSQLI_CLIENT_NO_SCHEMADon't allow the db_name.tbl_name.col_name syntax.
MYSQLI_CLIENT_MULTI_QUERIESAllows multiple semicolon-delimited queries in a single mysqli_query() call.
MYSQLI_STORE_RESULTFor using buffered resultsets
MYSQLI_USE_RESULTFor using unbuffered resultsets
MYSQLI_ASSOCColumns are returned into the array having the fieldname as the array index.
MYSQLI_NUMColumns are returned into the array having an enumerated index.
MYSQLI_BOTHColumns are returned into the array having both a numerical index and the fieldname as the associative index.
MYSQLI_NOT_NULL_FLAGIndicates that a field is defined as NOT NULL
MYSQLI_PRI_KEY_FLAGField is part of a primary index
MYSQLI_UNIQUE_KEY_FLAGField is part of a unique index.
MYSQLI_MULTIPLE_KEY_FLAGField is part of an index.
MYSQLI_BLOB_FLAGField is defined as BLOB
MYSQLI_UNSIGNED_FLAGField is defined as UNSIGNED
MYSQLI_ZEROFILL_FLAGField is defined as ZEROFILL
MYSQLI_AUTO_INCREMENT_FLAGField is defined as AUTO_INCREMENT
MYSQLI_TIMESTAMP_FLAGField is defined as TIMESTAMP
MYSQLI_SET_FLAGField is defined as SET
MYSQLI_NUM_FLAGField is defined as NUMERIC
MYSQLI_PART_KEY_FLAGField is part of an multi-index
MYSQLI_GROUP_FLAGField is part of GROUP BY
MYSQLI_TYPE_DECIMALField is defined as DECIMAL
MYSQLI_TYPE_NEWDECIMALPrecision math DECIMAL or NUMERIC field (MySQL 5.0.3 and up)
MYSQLI_TYPE_BITField is defined as BIT (MySQL 5.0.3 and up)
MYSQLI_TYPE_TINYField is defined as TINYINT
MYSQLI_TYPE_SHORTField is defined as SMALLINT
MYSQLI_TYPE_LONGField is defined as INT
MYSQLI_TYPE_FLOATField is defined as FLOAT
MYSQLI_TYPE_DOUBLEField is defined as DOUBLE
MYSQLI_TYPE_NULLField is defined as DEFAULT NULL
MYSQLI_TYPE_TIMESTAMPField is defined as TIMESTAMP
MYSQLI_TYPE_LONGLONGField is defined as BIGINT
MYSQLI_TYPE_INT24Field is defined as MEDIUMINT
MYSQLI_TYPE_DATEField is defined as DATE
MYSQLI_TYPE_TIMEField is defined as TIME
MYSQLI_TYPE_DATETIMEField is defined as DATETIME
MYSQLI_TYPE_YEARField is defined as YEAR
MYSQLI_TYPE_NEWDATEField is defined as DATE
MYSQLI_TYPE_INTERVALField is defined as INTERVAL
MYSQLI_TYPE_ENUMField is defined as ENUM
MYSQLI_TYPE_SETField is defined as SET
MYSQLI_TYPE_TINY_BLOBField is defined as TINYBLOB
MYSQLI_TYPE_MEDIUM_BLOBField is defined as MEDIUMBLOB
MYSQLI_TYPE_LONG_BLOBField is defined as LONGBLOB
MYSQLI_TYPE_BLOBField is defined as BLOB
MYSQLI_TYPE_VAR_STRINGField is defined as VARCHAR
MYSQLI_TYPE_STRINGField is defined as CHAR or BINARY
MYSQLI_TYPE_CHARField is defined as TINYINT. For CHAR, see MYSQLI_TYPE_STRING
MYSQLI_TYPE_GEOMETRYField is defined as GEOMETRY
MYSQLI_NEED_DATAMore data available for bind variable
MYSQLI_NO_DATANo more data available for bind variable
MYSQLI_DATA_TRUNCATEDData truncation occurred. Available since PHP 5.1.0 and MySQL 5.0.5.
MYSQLI_ENUM_FLAGField is defined as ENUM. Available since PHP 5.3.0.
MYSQLI_BINARY_FLAGField is defined as BINARY. Available since PHP 5.3.0.
MYSQLI_CURSOR_TYPE_FOR_UPDATE
MYSQLI_CURSOR_TYPE_NO_CURSOR
MYSQLI_CURSOR_TYPE_READ_ONLY
MYSQLI_CURSOR_TYPE_SCROLLABLE
MYSQLI_STMT_ATTR_CURSOR_TYPE
MYSQLI_STMT_ATTR_PREFETCH_ROWS
MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH
MYSQLI_SET_CHARSET_NAME
MYSQLI_REPORT_INDEXReport if no index or bad index was used in a query.
MYSQLI_REPORT_ERRORReport errors from mysqli function calls.
MYSQLI_REPORT_STRICTThrow a mysqli_sql_exception for errors instead of warnings.
MYSQLI_REPORT_ALLSet all options on (report all).
MYSQLI_REPORT_OFFTurns reporting off.
MYSQLI_DEBUG_TRACE_ENABLEDIs set to 1 if mysqli_debug() functionality is enabled.
MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED
MYSQLI_SERVER_QUERY_NO_INDEX_USED
MYSQLI_REFRESH_GRANTRefreshes the grant tables.
MYSQLI_REFRESH_LOGFlushes the logs, like executing the FLUSH LOGS SQL statement.
MYSQLI_REFRESH_TABLESFlushes the table cache, like executing the FLUSH TABLES SQL statement.
MYSQLI_REFRESH_HOSTSFlushes the host cache, like executing the FLUSH HOSTS SQL statement.
MYSQLI_REFRESH_STATUSReset the status variables, like executing the FLUSH STATUS SQL statement.
MYSQLI_REFRESH_THREADSFlushes the thread cache.
MYSQLI_REFRESH_SLAVEOn a slave replication server: resets the master server information, and restarts the slave. Like executing the RESET SLAVE SQL statement.
MYSQLI_REFRESH_MASTEROn a master replication server: removes the binary log files listed in the binary log index, and truncates the index file. Like executing the RESET MASTER SQL statement.
MYSQLI_TRANS_COR_AND_CHAINAppends "AND CHAIN" to mysqli_commit() or mysqli_rollback().
MYSQLI_TRANS_COR_AND_NO_CHAINAppends "AND NO CHAIN" to mysqli_commit() or mysqli_rollback().
MYSQLI_TRANS_COR_RELEASEAppends "RELEASE" to mysqli_commit() or mysqli_rollback().
MYSQLI_TRANS_COR_NO_RELEASEAppends "NO RELEASE" to mysqli_commit() or mysqli_rollback().
MYSQLI_TRANS_START_READ_ONLYStart the transaction as "START TRANSACTION READ ONLY" with mysqli_begin_transaction().
MYSQLI_TRANS_START_READ_WRITEStart the transaction as "START TRANSACTION READ WRITE" with mysqli_begin_transaction().
MYSQLI_TRANS_START_CONSISTENT_SNAPSHOTStart the transaction as "START TRANSACTION WITH CONSISTENT SNAPSHOT" with mysqli_begin_transaction().