mysqli_stmt::bind_param(): Number of elements in type definition string doesn’t match number of bind variables

The characters in the string should not be separated by commas:

$stmt->bind_param("sss...", /* variables */);

You can see this format demonstrated in the examples on the manual page.

Leave a Comment