About mysqli prepared statements: is it correct that you can not interrupt the prepared sequence by a require-statement?

The sequence:

mysqli_stmt_init
mysqli_prepare
mysqli_stmt_bind_param
mysqli_stmt_execute
mysqli_stmt_store_result
mysqli_stmt_num_rows

works fine, but then:

mysqli_stmt_bind_result 

gives no error directly following, but gives an error after a require:

Number of bind variables doesn't match number of fields in prepared statement.

So I found a solution, but I never find a warning to prevent this. It cost me a day.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum