Re: [phplib] Equivalent of mysql_fetch_array From: Matthias Lange (ml <email protected>)
Date: 09/25/00

> The author made extensive use of code like -
>
> while ( $row = mysql_fetch_array($results))
> {
> $data[$count] = $row;
> $count++;
> }
>

Hi,

try this:
$db->query("select bla from foo");
while ($db->next_record()) {
        printf("Bla is: %s<br>",htmlentities($db->f("bla")));
}

This works fine for me.

Matthias Lange

-- 
Matthias Lange
NetUSE AG
Siemenswall, D-24107 Kiel, Germany
Fon: +49 431 386435 00   --   Fax: +49 431 386435 99

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