Subject Re: [firebird-php] Re: Changing default (IBASE_DEFAULT) transaction isolation level
Author Lester Caine
Jiri Cincura wrote:
> Maybe little bit OT, but can I create function in PHP with variable
> count of parameters, so I can wrap and*call* fbird_query (it's using
> this for parameters)? The "trick" with array doesn't work.

ADOdb wraps it up for me, I just feed the SQL and the Array of Parmaeters

It's a bit more complex in the code, but essentially

$fn = 'fbird_query';
$fnarr = array_merge( array($conn,$sql) , $iarr);
$ret = call_user_func_array($fn,$fnarr);

Working fine for me so what is the problem?

( must tidy things up and strip the old PHP4 hacks in there :) )

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk