00001 <html>
00002 <body>
00003 <?php
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 $ADODB_CACHE_DIR = dirname(tempnam('/tmp',''));
00015 include("../adodb.inc.php");
00016
00017 if (isset($access)) {
00018 $db=ADONewConnection('access');
00019 $db->PConnect('nwind');
00020 } else {
00021 $db = ADONewConnection('mysql');
00022 $db->PConnect('mangrove','root','','xphplens');
00023 }
00024 if (isset($cache)) $rs = $db->CacheExecute(120,'select * from products');
00025 else $rs = $db->Execute('select * from products');
00026
00027 $arr = $rs->GetArray();
00028 print sizeof($arr);
00029 ?>