[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Patrick
I ran into the same problem doing it oo style like this: call_user_func_array(array($stmt, 'bind_result'),$rr); Still don't understand why. Any input on this is very much welcome. I could work around using eval: $obj=$stmt; $mthd='bind_result'; $args[0]=''; $args[1]='';

[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Patrick
correction: I made $args as this: $args='$rr[0],$rr[1]'; Patrick [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I ran into the same problem doing it oo style like this: call_user_func_array(array($stmt, 'bind_result'),$rr); Still don't understand why. Any input on this is very

[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Skrol29
Hello, mysqli_stmt_bind_result() is a special function that takes parameters by reference after the first one. When you code: mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]); Then $arr[1] and $arr[2] can be passed by reference. But when you code: $arr[0]=$stmt; $arr[1]=''; $arr[2]='';