v5:reference:recordset:movefirst
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| v5:reference:recordset:movefirst [2016/01/17 00:59] – ↷ Page moved from v5:reference:movefirst to v5:reference:recordset:movefirst mnewnham | v5:reference:recordset:movefirst [2020/01/02 16:50] (current) – peterdd | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| </ | </ | ||
| ===== Description ===== | ===== Description ===== | ||
| - | The function '' | + | The function '' |
| ------------------------------------------- | ------------------------------------------- | ||
| ===== Usage ===== | ===== Usage ===== | ||
| Line 13: | Line 13: | ||
| * Connection to DB2 sample database | * Connection to DB2 sample database | ||
| */ | */ | ||
| - | $SQL = " | + | $sql = " |
| - | $recordset = $db-> | + | $recordset = $db-> |
| /* | /* | ||
| Line 20: | Line 20: | ||
| */ | */ | ||
| $recordset-> | $recordset-> | ||
| - | /* | + | $record = $recordset-> |
| - | * Retrieve the record as an object | + | print_r($record); |
| - | */ | + | |
| - | $record = $recordset-> | + | |
| + | $recordset-> | ||
| + | $record = $recordset-> | ||
| print_r($record); | print_r($record); | ||
| - | /* | ||
| - | * Prints | ||
| - | ADOFetchObj Object | ||
| - | ( | ||
| - | [ACTNO] => 100 | ||
| - | [ACTKWD] => TEACH | ||
| - | [ACTDESC] => TEACH CLASSES | ||
| - | ) | ||
| - | */ | ||
| - | /* | ||
| - | * Go to the 11th record | ||
| - | */ | ||
| - | $recordSet-> | ||
| - | /* | ||
| - | * Retrieve the record as an object | ||
| - | */ | ||
| - | $record = $recordset-> | ||
| - | print_r($record); | ||
| - | /* | ||
| - | * Prints | ||
| - | ADOFetchObj Object | ||
| - | ( | ||
| - | [ACTNO] => 110 | ||
| - | [ACTKWD] => COURSE | ||
| - | [ACTDESC] => DEVELOP COURSES | ||
| - | ) | ||
| - | */ | ||
| </ | </ | ||
v5/reference/recordset/movefirst.1452988748.txt.gz · Last modified: (external edit)
