v5:reference:recordset:movelast
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| v5:reference:recordset:movelast [2020/01/02 12:03] – ↷ Page moved from v5:reference:connection:movelast to v5:reference:recordset:movelast dregad | v5:reference:recordset:movelast [2020/01/02 16:53] (current) – fix typos in the example peterdd | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| * Connection to DB2 sample database | * Connection to DB2 sample database | ||
| */ | */ | ||
| - | $SQL = " | + | $sql = " |
| - | $recordset = $db-> | + | $recordset = $db-> |
| - | /* | + | $recordset-> |
| - | * Go to the 10th record | + | $record = $recordset-> |
| - | */ | + | print_r($record); |
| - | $recordset-> | + | |
| - | /* | + | |
| - | * Retrieve the record as an object | + | |
| - | */ | + | |
| - | $record = $recordset-> | + | |
| - | print_r($record); | ||
| /* | /* | ||
| * Prints | * Prints | ||
| Line 35: | Line 29: | ||
| ) | ) | ||
| - | $ok = $recordSet-> | + | $ok = $recordset-> |
| /* | /* | ||
| * Past EOF, $ok returns false | * Past EOF, $ok returns false | ||
v5/reference/recordset/movelast.1577963026.txt.gz · Last modified: by dregad
