new approach to logging database access and upgraded adodb
[openemr.git] / library / adodb / tests / test5.php
blobf681484e58ec3a08ed9c3e2f9b076643aeac6d7f
1 <?php
2 /*
3 V4.80 8 Mar 2006 (c) 2000-2011 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 4 for best viewing.
9 Latest version is available at http://adodb.sourceforge.net
13 // Select an empty record from the database
15 include('../adodb.inc.php');
16 include('../tohtml.inc.php');
18 include('../adodb-errorpear.inc.php');
20 if (0) {
21 $conn = ADONewConnection('mysql');
22 $conn->debug=1;
23 $conn->PConnect("localhost","root","","xphplens");
24 print $conn->databaseType.':'.$conn->GenID().'<br>';
27 if (0) {
28 $conn = ADONewConnection("oci8"); // create a connection
29 $conn->debug=1;
30 $conn->PConnect("falcon", "scott", "tiger", "juris8.ecosystem.natsoft.com.my"); // connect to MySQL, testdb
31 print $conn->databaseType.':'.$conn->GenID();
34 if (0) {
35 $conn = ADONewConnection("ibase"); // create a connection
36 $conn->debug=1;
37 $conn->Connect("localhost:c:\\Interbase\\Examples\\Database\\employee.gdb", "sysdba", "masterkey", ""); // connect to MySQL, testdb
38 print $conn->databaseType.':'.$conn->GenID().'<br>';
41 if (0) {
42 $conn = ADONewConnection('postgres');
43 $conn->debug=1;
44 @$conn->PConnect("susetikus","tester","test","test");
45 print $conn->databaseType.':'.$conn->GenID().'<br>';