test5.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /*
  3. @version v5.20.17 31-Mar-2020
  4. @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved.
  5. @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community
  6. Released under both BSD license and Lesser GPL library license.
  7. Whenever there is any discrepancy between the two licenses,
  8. the BSD license will take precedence.
  9. Set tabs to 4 for best viewing.
  10. Latest version is available at http://adodb.org/
  11. */
  12. // Select an empty record from the database
  13. include('../adodb.inc.php');
  14. include('../tohtml.inc.php');
  15. include('../adodb-errorpear.inc.php');
  16. if (0) {
  17. $conn = ADONewConnection('mysql');
  18. $conn->debug=1;
  19. $conn->PConnect("localhost","root","","xphplens");
  20. print $conn->databaseType.':'.$conn->GenID().'<br>';
  21. }
  22. if (0) {
  23. $conn = ADONewConnection("oci8"); // create a connection
  24. $conn->debug=1;
  25. $conn->PConnect("falcon", "scott", "tiger", "juris8.ecosystem.natsoft.com.my"); // connect to MySQL, testdb
  26. print $conn->databaseType.':'.$conn->GenID();
  27. }
  28. if (0) {
  29. $conn = ADONewConnection("ibase"); // create a connection
  30. $conn->debug=1;
  31. $conn->Connect("localhost:c:\\Interbase\\Examples\\Database\\employee.gdb", "sysdba", "masterkey", ""); // connect to MySQL, testdb
  32. print $conn->databaseType.':'.$conn->GenID().'<br>';
  33. }
  34. if (0) {
  35. $conn = ADONewConnection('postgres');
  36. $conn->debug=1;
  37. @$conn->PConnect("susetikus","tester","test","test");
  38. print $conn->databaseType.':'.$conn->GenID().'<br>';
  39. }