v5:reference:recordset:movefirst
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:reference:movefirst [2016/01/13 02:31] – ↷ Page moved from reference:movefirst to v5:reference: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.1452648671.txt.gz · Last modified: 2017/04/21 11:37 (external edit)