Sanity check on arrays ...
| From: | Lester Caine | Date: | Sun, 23 Aug 2015 14:52:47 +0000 |
| Subject: | Sanity check on arrays ... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-325061@lists.php.net to get a copy of this message | ||
$ret = array();
while ($res = $result->fetchRow()) {
Tidy contents of $res array
$ret[] = $res;
}
What I expect and what is happening on every other lookup is that
$ret[0] contains first result array ... on this one there is another
level being added so $ret[][0] and the following code sees an empty
array for this data set :(
Can't see anything different to the other working loops so anybody got
an idea where the extra level materialised from?
--
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