[PHPLIB] $db->last_record() ??? From: Christof Beaupoil (beaupoil <email protected>)
Date: 04/13/00

next_record() of the DB_SQL class works fine. But how do I get the LAST
record?

last_record() doesnt exist so I tried something like

$db->Row -=1;

or

$id = $db->Row;
$id -=1;
$db->seek($id);

or

$id = $db->Row;
$id -=1;
$db->Row = $id;

None of those works? Why???
echo $db->Row; shows that the row is changing,
$value = $db -> f("column1"); keeps showing the first record though.

$db->Auto_Free is 0
I´m working with mySQL + phplib 7.2

Is there any possible way of browsing backwards through the query
result?

Christof Beaupoil
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.