Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/lib/adodb/test2.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">


  V3.10 27 Jan 2003  (c) 2000-2003 John Lim (hide@address.com). All rights reserved.
  Released under both BSD license and Lesser GPL library license. 
  Whenever there is any discrepancy between the two licenses, 
  the BSD license will take precedence.
  Set tabs to 8.
# test connecting to 2 MySQL databases simultaneously and ensure that each connection
# is independant.


$c1 = ADONewConnection('oci8');

if (!$c1->PConnect('','scott','tiger')) 
	die("Cannot connect to server");

$rs = $c1->CacheExecute(1200,'select rownum, p1.firstname,p2.lastname,p2.firstname,p1.lastname from adoxyz p1, adoxyz p2');
print "Records=".$rs->RecordCount()."<br>";

Return current item: BugIn and Ticketing System