index : flyspray | |
Archlinux32 customized Flyspray installation | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
commit | 6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch) | |
tree | 350feb504587d932e02837a1442b059759927646 /vendor/adodb/adodb-php/tests/test_rs_array.php |
-rw-r--r-- | vendor/adodb/adodb-php/tests/test_rs_array.php | 46 |
diff --git a/vendor/adodb/adodb-php/tests/test_rs_array.php b/vendor/adodb/adodb-php/tests/test_rs_array.php new file mode 100644 index 0000000..547b20a --- /dev/null +++ b/vendor/adodb/adodb-php/tests/test_rs_array.php @@ -0,0 +1,46 @@ +<?php + +include_once('../adodb.inc.php'); +$rs = new ADORecordSet_array(); + +$array = array( +array ('Name', 'Age'), +array ('John', '12'), +array ('Jill', '8'), +array ('Bill', '49') +); + +$typearr = array('C','I'); + + +$rs->InitArray($array,$typearr); + +while (!$rs->EOF) { + print_r($rs->fields);echo "<br>"; + $rs->MoveNext(); +} + +echo "<hr /> 1 Seek<br>"; +$rs->Move(1); +while (!$rs->EOF) { + print_r($rs->fields);echo "<br>"; + $rs->MoveNext(); +} + +echo "<hr /> 2 Seek<br>"; +$rs->Move(2); +while (!$rs->EOF) { + print_r($rs->fields);echo "<br>"; + $rs->MoveNext(); +} + +echo "<hr /> 3 Seek<br>"; +$rs->Move(3); +while (!$rs->EOF) { + print_r($rs->fields);echo "<br>"; + $rs->MoveNext(); +} + + + +die(); |