PHP mysqli_fetch_row() Function

Object oriented style

bool mysqli::options ( int $option , mixed $value )

Procedural style

bool mysqli_options ( mysqli $link , int $option , mixed $value )

Used to set extra connect options and affect behavior for a connection.

This function may be called multiple times to set several options.mysqli_options() should be called after mysqli_init() and before mysqli_real_connect().

ParameterDescription
linkProcedural style only: A link identifier returned by mysqli_connect() or mysqli_init()
optionThe option that you want to set: It can be one of the following values:MYSQLI_OPT_CONNECT_TIMEOUT - connection timout in seconds.MYSQLI_OPT_LOCAL_INFILE - enable/disable use of LOAD LOCAL INFILE.MYSQLI_READ_DEFAULT_FILE - read options from named file instead of my.cnf.MYSQLI_INIT_COMMAND - command to execute after connecting to MySQL server.MYSQLI_SERVER_PUBLIC_KEY - RSA public key file used with SHA-256 based authentication.MYSQLI_READ_DEFAULT_GROUP - read options from named group from my.cnf or the file specified in MYSQLI_READ_DEFAULT_FILE.

Return Values

Returns TRUE on success or FALSE on failure.