Subject | Re: [firebird-php] Re: Changing default (IBASE_DEFAULT) transaction isolation level |
---|---|
Author | Lester Caine |
Post date | 2012-09-13T10:10:56Z |
Jiri Cincura wrote:
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
> Maybe little bit OT, but can I create function in PHP with variableADOdb wraps it up for me, I just feed the SQL and the Array of Parmaeters
> count of parameters, so I can wrap and*call* fbird_query (it's using
> this for parameters)? The "trick" with array doesn't work.
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