RE: [phplib] Equivalent of mysql_fetch_array From: layne <email protected>
Date: 09/25/00

> 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.

Assuming you are replacing

        $results = mysql_query(...);

with

        $db->query(...);

then this should work for you

        while($db->next_record()) {
                $row = $db->Record;
                ...
                author's original code
                ...
                }

Layne Weathers
Lead Programmer
Ifworld, Inc.

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