MySQL Improved Extension (
Mysqli
)
2440
mode
The value to assign to the attribute.
20.7.3.10.4.
mysqli_stmt::bind_param
,
mysqli_stmt_bind_param
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqli_stmt::bind_param
mysqli_stmt_bind_param
Binds variables to a prepared statement as parameters
Description
Object oriented style
bool mysqli_stmt::bind_param(
string types,
mixed var1,
mixed ...);
Procedural style
bool mysqli_stmt_bind_param(
mysqli_stmt stmt,
string types,
mixed var1,
mixed ...);
Bind variables for the parameter markers in the SQL statement that was passed to
mysqli_prepare
.
Note
If data size of a variable exceeds max. allowed packet size
(max_allowed_packet), you have to specify
b
in
types
and use
mysqli_stmt_send_long_data
to send the data in packets.
Note
Care must be taken when using
mysqli_stmt_bind_param
in conjunction
with
call_user_func_array
. Note that
mysqli_stmt_bind_param
requires parameters to be passed by reference, whereas
call_user_func_array
can accept as a parameter a list of variables that
can represent references or values.
Parameters
stmt
Procedural style only: A statement identifier returned by
mysqli_stmt_init
.
types
A string that contains one or more characters which specify the
types for the corresponding bind variables:
Table 20.48. Type specification chars
Character
Description
i
corresponding variable has type
integer
d
corresponding variable has type
double
s
corresponding variable has type
string
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...