Revision 34,
806 bytes
checked in by niltonneto, 17 years ago
(diff) |
Versão nova do ADODB (4.5 para 4.95)
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[2] | 1 | <html> |
---|
| 2 | <body> |
---|
| 3 | <?php |
---|
| 4 | /* |
---|
[34] | 5 | V4.80 8 Mar 2006 (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved. |
---|
[2] | 6 | Released under both BSD license and Lesser GPL library license. |
---|
| 7 | Whenever there is any discrepancy between the two licenses, |
---|
| 8 | the BSD license will take precedence. |
---|
| 9 | Set tabs to 4 for best viewing. |
---|
| 10 | |
---|
| 11 | Latest version is available at http://adodb.sourceforge.net |
---|
| 12 | */ |
---|
| 13 | |
---|
| 14 | $ADODB_CACHE_DIR = dirname(tempnam('/tmp','')); |
---|
| 15 | include("../adodb.inc.php"); |
---|
| 16 | |
---|
| 17 | if (isset($access)) { |
---|
| 18 | $db=ADONewConnection('access'); |
---|
| 19 | $db->PConnect('nwind'); |
---|
| 20 | } else { |
---|
| 21 | $db = ADONewConnection('mysql'); |
---|
| 22 | $db->PConnect('mangrove','root','','xphplens'); |
---|
| 23 | } |
---|
| 24 | if (isset($cache)) $rs = $db->CacheExecute(120,'select * from products'); |
---|
| 25 | else $rs = $db->Execute('select * from products'); |
---|
| 26 | |
---|
| 27 | $arr = $rs->GetArray(); |
---|
| 28 | print sizeof($arr); |
---|
| 29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.