Re: FN-FORUM: [PHP] Why?
date posted 26th January 2005 18:14
On Wednesday 26 Jan 2005 6:51 pm, Dai Williams wrote:
> It loads the rows from the db into the array $details ($details[] will
> append to the next empty array member so equivalent to
> $details[count($details)]). =20
Excuse my language, no shit. And that goes for the rest of you=20
that answered "what?", not "why?".
> As to why, it depends what it does with
> them later, it may be because the code needs to do 'random access'
> rather than sequential access on the data and while that is supported
> diretcly with recordsets using mysql_result(), doing it directly on an
> array will almost certainy be quicker.
Oh that I could believe this code was that sophisticated. No, having=20
hoovered the whole lot into an array, it spits it out again, in order.