Updated Rico 2 and Rico 3 with all patches submitted on Sourceforge.
[infodrom/rico3] / examples / php / dbConnect.php
index 2edccda..6634874 100644 (file)
@@ -19,6 +19,11 @@ function OpenDB() {
   //$oDB->Dialect="TSQL";\r
   //return $oDB->MSSqlLogon("computer/instance", $appDB, "userid", "password");\r
 \r
   //$oDB->Dialect="TSQL";\r
   //return $oDB->MSSqlLogon("computer/instance", $appDB, "userid", "password");\r
 \r
+  // PostgreSQL\r
+  // The connection_string can be empty to use all default parameters, or it can contain one or more parameter settings separated by whitespace. Each parameter setting is in the form keyword = value. Spaces around the equal sign are optional. To write an empty value or a value containing spaces, surround it with single quotes, e.g., keyword = 'a value'. Single quotes and backslashes within the value must be escaped with a backslash, i.e., \' and \\.\r
+  // The currently recognized parameter keywords are: host, hostaddr, port, dbname (defaults to value of user), user, password, connect_timeout, options, tty (ignored), sslmode, requiressl (deprecated in favor of sslmode), and service. Which of these arguments exist depends on your PostgreSQL version. \r
+  //return $oDB->PostgreSqlLogon($connection_string);\r
+  \r
   // ODBC - MS Access\r
   //$oDB->Dialect="Access";\r
   //return $oDB->OdbcLogon("northwindDSN","Northwind","userid","password");\r
   // ODBC - MS Access\r
   //$oDB->Dialect="Access";\r
   //return $oDB->OdbcLogon("northwindDSN","Northwind","userid","password");\r