mysql_stmt_bind_param — Binds parameter variables to a prepared statement
my_bool mysql_stmt_bind_param(MYSQL_STMT * stmt,
MYSQL_BIND * bnd);Binds variables for parameter markers in the prepared statement that was passed to mysql_prepare(). Variabl
Parameters
stmtA statement handle, which was previously allocated by mysql_stmt_init().
bindAn array of MYSQL_BIND structures. The size of this array must be equal to the number of parameters.
Return value
Zero on success, non-zero on failure.
![[Note]](note.png) | |
|---|
The number of parameters can be obtained by mysql_stmt_param_count(). |
See also
mysql_stmt_prepare(), mysql_stmt_bind_result(), mysql_stmt_execute(), mysql_stmt_param_count(), mysql_stmt_send_long_data