[phplib] Equivalent of mysql_fetch_array From: Rex Byrns (rexb <email protected>)
Date: 09/25/00

I hope this is not too stupid of a question.

Recently I found some sample code that did exactly what I wanted, but didn't
use db_Sql (obviously not everyone has discovered the benefits of phplib).

The author made extensive use of code like -

                while ( $row = mysql_fetch_array($results))
                {
                        $data[$count] = $row;
                        $count++;
                }

I tried - while ($row = $db->(Record)){ . . . etc.

But the array did not contain what I wanted.

What is the best way to reproduce this type of functionality? I went ahead
and built the array that I needed by calling up the exact fields that I
needed with

array("$db->f(Fieldname)=>$db->f(FieldTwo)")

It works now, but seems to run a visible amount slower than the original
code.

Thanks for your input..

        Rex

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>