[PHP] Report generators: experience, recommendations?

2010-02-13 Thread Jonathan Sachs
I'm looking for a report generator which will be used to create management reports for my client from a MySQL database. The web site is implemented in PHP. Some characteristics that would be nice to have, roughly in order of importance: * It is moderately priced (a few hundred dollars at most) or

[PHP] Re: Report generators: experience, recommendations?

2010-02-14 Thread Jonathan Sachs
On Sat, 13 Feb 2010 20:01:35 -0500, n...@ridersite.org (Al) wrote: >> I'm looking for a report generator which will be used to create >> management reports for my client from a MySQL database >> >> Has anyone had experience with report generators that meet these >> criteria? What would you rec

[PHP] Possible foreach bug; seeking advice to isolate the problem

2010-10-19 Thread Jonathan Sachs
I've got a script which originally contained the following piece of code: foreach ( $objs as $obj ) { do_some_stuff($obj); } When I tested it, I found that on every iteration of the loop the last element of $objs was assigned the value of the current element. I was able to step through the loo

[PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-20 Thread Jonathan Sachs
On Wed, 20 Oct 2010 08:37:55 +0200, php-gene...@garydjones.name (Gary) wrote: >Better. I can tell you how to solve it: >$a = array('a', 'b','c'); >foreach($a as &$row){ >//you don't have to do anything here >} >unset($row); // <<<< THIS IS KEY! >print_r($a); >fo

[PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-22 Thread Jonathan Sachs
Gary wrote: >Better. I can tell you how to solve it: >$a = array('a', 'b','c'); >foreach($a as &$row){ >//you don't have to do anything here >} >unset($row); // <<<< THIS IS KEY! >print_r($a); >foreach($a as $row){ >echo "".$row; >} >print_r($a);

Re: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-23 Thread Jonathan Sachs
On Sat, 23 Oct 2010 08:34:27 +0200, peter.e.l...@gmail.com (Peter Lind) wrote: >It is not a bug - somewhere before the foreach loop you've got, a >variable is being referenced, and that's throwing things off. >Otherwise, unsetting the variable would have no effect on the problem >you're seeing. C

Re: [PHP] Re: Possible foreach bug; seeking advice to isolate the problem

2010-10-23 Thread Jonathan Sachs
On Sat, 23 Oct 2010 16:56:52 +0200, peter.e.l...@gmail.com (Peter Lind) wrote: >More information (and a complete breakdown of your problem) is >available here: >http://schlueters.de/blog/archives/141-References-and-foreach.html Thank you! The situation is obscure and confusing, but that explanati