stop reporting of a custom error (it is benign) to the php logfile
[openemr.git] / library / adodb / tests / test5.php
blobba02aeed085a35700bb55f7cbd12f17951b6efa7
1 <?php
2 /*
3 V4.20 22 Feb 2004 (c) 2000-2004 John Lim (jlim@natsoft.com.my). 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://php.weblogs.com/
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>';