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.


there are 65 string params so if there are 65 s's you have the correct number. However the errors are appearing because you separated the s's by commas. Instead of $stmt->bind_param("s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s..." it should be

$stmt->bind_param("sssssssssssssssss..."

This should solve your errors.