====== moveLast ====== ~~NOTOC~~ == Syntax == bool moveLast() ===== Description ===== The function ''moveLast()'' moves the cursor to the last record in a recordset. The only time that the function returns false is if the recordset is empty. ------------------------------------------- ===== Usage ===== /* * Connection to DB2 sample database */ $sql = "SELECT * FROM act"; $recordset = $db->execute($sql); $recordset->moveLast(); $record = $recordset->fetchObj(); print_r($record); /* * Prints ADOFetchObj Object ( [ACTNO] => 180 [ACTKWD] => DOC [ACTDESC] => DOCUMENT ) $ok = $recordset->moveNext(); /* * Past EOF, $ok returns false */