maxdb_stmt_bind_param
Binds variables to a prepared statement as parameters
Description
Procedural style:
boolmaxdb_stmt_bind_param
resourcestmt
stringtypes
mixedvar1
mixed...
maxdb_stmt_bind_param is used to bind variables for the
parameter markers in the SQL statement that was passed to
maxdb_prepare.
The string types contains one or more characters which specify
the types for the corresponding bind variables
Type specification chars
Character
Description
i
corresponding variable has type integer
d
corresponding variable has type double
s
corresponding variable has type string
b
corresponding variable is a blob and will be send in packages
Return values
&return.success;
See also
maxdb_stmt_bind_result,
maxdb_stmt_execute,
maxdb_stmt_fetch,
maxdb_prepare,
maxdb_stmt_send_long_data,
maxdb_stmt_errno,
maxdb_stmt_error
Example
Procedural style
]]>
The above examples would produce the following output: