Revision 763,
679 bytes
checked in by niltonneto, 15 years ago
(diff) |
Importação inicial do Expresso da Celepar
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | include_once('../adodb.inc.php'); |
---|
4 | $rs = new ADORecordSet_array(); |
---|
5 | |
---|
6 | $array = array( |
---|
7 | array ('Name', 'Age'), |
---|
8 | array ('John', '12'), |
---|
9 | array ('Jill', '8'), |
---|
10 | array ('Bill', '49') |
---|
11 | ); |
---|
12 | |
---|
13 | $typearr = array('C','I'); |
---|
14 | |
---|
15 | |
---|
16 | $rs->InitArray($array,$typearr); |
---|
17 | |
---|
18 | while (!$rs->EOF) { |
---|
19 | print_r($rs->fields);echo "<br>"; |
---|
20 | $rs->MoveNext(); |
---|
21 | } |
---|
22 | |
---|
23 | echo "<hr /> 1 Seek<br>"; |
---|
24 | $rs->Move(1); |
---|
25 | while (!$rs->EOF) { |
---|
26 | print_r($rs->fields);echo "<br>"; |
---|
27 | $rs->MoveNext(); |
---|
28 | } |
---|
29 | |
---|
30 | echo "<hr /> 2 Seek<br>"; |
---|
31 | $rs->Move(2); |
---|
32 | while (!$rs->EOF) { |
---|
33 | print_r($rs->fields);echo "<br>"; |
---|
34 | $rs->MoveNext(); |
---|
35 | } |
---|
36 | |
---|
37 | echo "<hr /> 3 Seek<br>"; |
---|
38 | $rs->Move(3); |
---|
39 | while (!$rs->EOF) { |
---|
40 | print_r($rs->fields);echo "<br>"; |
---|
41 | $rs->MoveNext(); |
---|
42 | } |
---|
43 | |
---|
44 | |
---|
45 | |
---|
46 | die(); |
---|
47 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.