stop reporting of a custom error (it is benign) to the php logfile
[openemr.git] / library / adodb / tests / test2.php
blob14474666499c7a3488fe72dafcac4e790e13e85e
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html>
4 <head>
5 <title>Untitled</title>
6 </head>
8 <body>
9 <?php
11 V4.20 22 Feb 2004 (c) 2000-2004 John Lim (jlim@natsoft.com.my). All rights reserved.
12 Released under both BSD license and Lesser GPL library license.
13 Whenever there is any discrepancy between the two licenses,
14 the BSD license will take precedence.
15 Set tabs to 8.
18 # test connecting to 2 MySQL databases simultaneously and ensure that each connection
19 # is independant.
21 include("../tohtml.inc.php");
22 include("../adodb.inc.php");
24 ADOLoadCode('mysql');
26 $c1 = ADONewConnection('oci8');
28 if (!$c1->PConnect('','scott','tiger'))
29 die("Cannot connect to server");
30 $c1->debug=1;
31 $rs = $c1->Execute('select rownum, p1.firstname,p2.lastname,p2.firstname,p1.lastname from adoxyz p1, adoxyz p2');
32 print "Records=".$rs->RecordCount()."<br><pre>";
33 //$rs->_array = false;
34 //$rs->connection = false;
35 //print_r($rs);
36 rs2html($rs);
40 </body>
41 </html>