v5:reference:recordset:move
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:reference:recordset:move [2016/01/17 00:57] – ↷ Page moved from v5:reference:move to v5:reference:recordset:move mnewnham | v5:reference:recordset:move [2026/02/08 11:04] (current) – [Description] dregad | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The function '' | + | The function '' |
| + | |||
| + | If the cursor is successfully moved then the function returns true. | ||
| + | If the move fails (negative | ||
| + | |||
| + | Note that some databases do not support moving to previous rows (scrolling backwards). | ||
| ------------------------------------------- | ------------------------------------------- | ||
| ===== Usage ===== | ===== Usage ===== | ||
| Line 15: | Line 21: | ||
| * Connection to DB2 sample database | * Connection to DB2 sample database | ||
| */ | */ | ||
| - | $SQL = " | + | $sql = " |
| - | $recordset = $db-> | + | $recordset = $db-> |
| /* | /* | ||
| Line 26: | Line 32: | ||
| * Retrieve the record as an object | * Retrieve the record as an object | ||
| */ | */ | ||
| - | $record = $recordset-> | + | $record = $recordset-> |
| print_r($record); | print_r($record); | ||
v5/reference/recordset/move.1452988651.txt.gz · Last modified: (external edit)
