mysql_stmt_bind_param binds an array of MYSQL_BIND variables to the parameter markers in a prepared statement before it is executed via mysql_stmt_execute.
Syntax
Parameters
stmt - a statement handle, which was previously allocated by mysql_stmt_init().
bind - an array of MYSQL_BIND structures. The size of this array must be equal to the number of parameters.
Description
Binds variables for parameter markers in the prepared statement that was passed to mysql_stmt_prepare(). Returns zero on success, non-zero on failure.