Date: 09/25/00
- Next message: Matthias Lange: "Re: [phplib] Equivalent of mysql_fetch_array"
- Previous message: Rex Byrns: "[phplib] Equivalent of mysql_fetch_array"
- Next in thread: Matthias Lange: "Re: [phplib] Equivalent of mysql_fetch_array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: Matthias Lange: "Re: [phplib] Equivalent of mysql_fetch_array"
- Previous message: Rex Byrns: "[phplib] Equivalent of mysql_fetch_array"
- Next in thread: Matthias Lange: "Re: [phplib] Equivalent of mysql_fetch_array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

