mysql_stmt_param_count — Returns the number of parameter for the given statement

unsigned long mysql_stmt_param_count(MYSQL_STMT * stmt);

Returns the number of parameter markers present in the prepared statement.

Parameters

stmt

A statement handle, which was previously allocated by mysql_stmt_init().

Return value

Returns the number of parameters in a prepared statement

[Note]

This function will not deliver a valid result until mysql_stmt_prepare() was called.

See also

mysql_stmt_prepare(), mysql_stmt_field_count()