source: trunk/phpgwapi/inc/adodb/tests/test2.php @ 2

Revision 2, 986 bytes checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
3<html>
4<head>
5        <title>Untitled</title>
6</head>
7
8<body>
9<?php
10/*
11  V4.51 29 July 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.
16 */
17#
18# test connecting to 2 MySQL databases simultaneously and ensure that each connection
19# is independant.
20#
21include("../tohtml.inc.php");
22include("../adodb.inc.php");   
23
24ADOLoadCode('mysql');
25
26$c1 = ADONewConnection('oci8');
27
28if (!$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');
32print "Records=".$rs->RecordCount()."<br><pre>";
33//$rs->_array = false;
34//$rs->connection = false;
35//print_r($rs);
36rs2html($rs);
37?>
38
39
40</body>
41</html>
Note: See TracBrowser for help on using the repository browser.