"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/tests/test_rs_array.php Source File", "datetime" => "Sat Dec 2 19:22:27 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

test_rs_array.php

00001 <?php
00002 
00003 include_once('../adodb.inc.php');
00004 $rs = new ADORecordSet_array();
00005 
00006 $array = array(
00007 array ('Name', 'Age'),
00008 array ('John', '12'),
00009 array ('Jill', '8'),
00010 array ('Bill', '49')
00011 );
00012 
00013 $typearr = array('C','I');
00014 
00015 
00016 $rs->InitArray($array,$typearr);
00017 
00018 while (!$rs->EOF) {
00019         print_r($rs->fields);echo "<br>";
00020         $rs->MoveNext();
00021 }
00022 
00023 echo "<hr /> 1 Seek<br>";
00024 $rs->Move(1);
00025 while (!$rs->EOF) {
00026         print_r($rs->fields);echo "<br>";
00027         $rs->MoveNext();
00028 }
00029 
00030 echo "<hr /> 2 Seek<br>";
00031 $rs->Move(2);
00032 while (!$rs->EOF) {
00033         print_r($rs->fields);echo "<br>";
00034         $rs->MoveNext();
00035 }
00036 
00037 echo "<hr /> 3 Seek<br>";
00038 $rs->Move(3);
00039 while (!$rs->EOF) {
00040         print_r($rs->fields);echo "<br>";
00041         $rs->MoveNext();
00042 }
00043 
00044 
00045 
00046 die();
00047 ?>