Re: arrays and refs...argh!

2002-02-16 Thread Andrea Holstein
In article <[EMAIL PROTECTED]> wrote "Ron Goral" <[EMAIL PROTECTED]>: > Can someone please tell me why the following code only returns the last element in >the referenced > array? If I put the foreach routine inside the while loop, I get a printout of each >element in > both the $sqlRes refer

arrays and refs...argh!

2002-02-15 Thread Ron Goral
Can someone please tell me why the following code only returns the last element in the referenced array? If I put the foreach routine inside the while loop, I get a printout of each element in both the $sqlRes reference and the $colNames reference. But, if I print outside the while loop, I only