I am trying to bind parameters dynamically using an array. This is the part of my code which is important and also shows debugging info:
$params = array_merge( array( $one ), array_values( $two ) );
echo '<pre>';
echo $query . '<br><br>';
print_r( $params );
call_user_func_array( array( &$stmt, 'bind_param' ), MakeValuesReferenced( $params ) );
This is the debugging info:
As you can see there are three question marks in my query, and three parameters added to bind_param. I thought this should be working. What am I doing wrong?
