MySQL Improved Extension (
Mysqli
)
2396
link
Procedural style only: A link identifier returned by
mysqli_connect
or
mysqli_init
Return Values
Returns
TRUE
on success or
FALSE
on failure.
Examples
See
mysqli_multi_query
.
See Also
mysqli_multi_query
mysqli_more_results
mysqli_store_result
mysqli_use_result
20.7.3.9.35.
mysqli::options
,
mysqli_options
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqli::options
mysqli_options
Set options
Description
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
.
Parameters
link
Procedural style only: A link identifier returned by
mysqli_connect
or
mysqli_init
option
The option that you want to set. It can be one of the following
values:
Table 20.45. Valid options
Name
Description
MYSQLI_OPT_CONNECT_TIMEOUT
connection timeout in seconds
(supported on Windows with
TCP/IP since PHP 5.3.1)
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...