source: sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/tests/test3.php @ 8222

Revision 8222, 893 bytes checked in by angelo, 11 years ago (diff)

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2/*
3  V4.80 8 Mar 2006  (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved.
4  Released under both BSD license and Lesser GPL library license.
5  Whenever there is any discrepancy between the two licenses,
6  the BSD license will take precedence.
7  Set tabs to 8.
8 */
9
10
11error_reporting(E_ALL);
12
13$path = dirname(__FILE__);
14
15include("$path/../adodb-exceptions.inc.php");
16include("$path/../adodb.inc.php");     
17
18try {
19$db = NewADOConnection("oci8");
20$db->Connect('','scott','natsoft');
21$db->debug=1;
22
23$cnt = $db->GetOne("select count(*) from adoxyz");
24$rs = $db->Execute("select * from adoxyz order by id");
25
26$i = 0;
27foreach($rs as $k => $v) {
28        $i += 1;
29        echo $k; adodb_pr($v);
30        flush();
31}
32
33if ($i != $cnt) die("actual cnt is $i, cnt should be $cnt\n");
34
35
36
37$rs = $db->Execute("select bad from badder");
38
39} catch (exception $e) {
40        adodb_pr($e);
41        $e = adodb_backtrace($e->trace);
42}
43
44?>
Note: See TracBrowser for help on using the repository browser.