[903] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | V4.80 8 Mar 2006 (c) 2000-2007 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.
|
---|
| 8 |
|
---|
| 9 | Latest version is available at http://adodb.sourceforge.net
|
---|
| 10 | */
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | // Select an empty record from the database
|
---|
| 14 |
|
---|
| 15 | include('../adodb.inc.php');
|
---|
| 16 | include('../tohtml.inc.php');
|
---|
| 17 |
|
---|
| 18 | include('../adodb-errorpear.inc.php');
|
---|
| 19 |
|
---|
| 20 | if (0) {
|
---|
| 21 | $conn = &ADONewConnection('mysql');
|
---|
| 22 | $conn->debug=1;
|
---|
| 23 | $conn->PConnect("localhost","root","","xphplens");
|
---|
| 24 | print $conn->databaseType.':'.$conn->GenID().'<br>';
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 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();
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 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>';
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 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>';
|
---|
| 46 | }
|
---|
| 47 | ?>
|
---|