Search the MySQL manual:

9.1.7.2 mysql_param_count()

unsigned long mysql_param_count(MYSQL_STMT *stmt)

Description

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

Return Values

An unsigned long integer representing the number of parameters in a statement.

Errors

None.

Example

For the usage of mysql_param_count(), refer to the Example from section 9.1.7.5 mysql_execute().

User Comments

Add your own comment.