Reply to Re: call_user_func_array and mysqli_stmt_bind_result

Your name:

Reply:


Posted by Patrick on 04/12/05 16:34

correction:
I made $args as this: $args='$rr[0],$rr[1]';


"Patrick" <patrick.swiggers@chello.be> wrote in message
news:20050412133048.66809.qmail@lists.php.net...
> 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]='';
> eval("\$rval=\$obj->\$mthd($args);");
>
> The $args is primitive but only for testing purposes. The reason why I
want
> to use this is because of variable arglist and don't want to work with
> switch.
>
> cheers,
> Pat
>
>
>
> "Patrick" <patrick.swiggers@chello.be> wrote in message
> news:20050411190101.31528.qmail@lists.php.net...
> > Hi,
> >
> > This is working (as a packet of crackers):
> >
> > ...
> >
> > mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]);
> >
> > ...
> >
> > This I cannot get to work:
> >
> > ...
> >
> > $arr[0]=$stmt; $arr[1]=''; $arr[2]='';
> >
> > call_user_func_array ('mysqli_stmt_bind_result',$arr);
> >
> > ...
> >
> > I'm not sure if what I try to do is possible in any way?
> >
> > Btw, this is Win PHP v5.0.3 , Apache v2.0.53, Mysql v5.0.2-alpha-nt.
> >
> > cheers and thanks,
> >
> > Patrick from Belgium (Brussels)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация