Date: 04/13/00
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Some maintenance changes to PHPLIB 7.2"
- Previous message: Mike Novak: "[PHPLIB] Select Case"
- Next in thread: Eric McKeown: "Re: [PHPLIB] $db->last_record() ???"
- Reply: Eric McKeown: "Re: [PHPLIB] $db->last_record() ???"
- Reply: Fabrizio Ermini: "Re: [PHPLIB] $db->last_record() ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Some maintenance changes to PHPLIB 7.2"
- Previous message: Mike Novak: "[PHPLIB] Select Case"
- Next in thread: Eric McKeown: "Re: [PHPLIB] $db->last_record() ???"
- Reply: Eric McKeown: "Re: [PHPLIB] $db->last_record() ???"
- Reply: Fabrizio Ermini: "Re: [PHPLIB] $db->last_record() ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

