ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:adonewconnection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
v5:reference:connection:adonewconnection [2016/01/17 03:29] mnewnhamv5:reference:connection:adonewconnection [2016/01/17 15:29] – [Error Codes] mnewnham
Line 2: Line 2:
 ~~NOTOC~~ ~~NOTOC~~
 <WRAP right box> <WRAP right box>
-== Syntax before version 6.0.0 ==+== Syntax ==
      
   mixed adoNewConnection(   mixed adoNewConnection(
Line 8: Line 8:
   )   )
    
-== Syntax version 6.0.0 == 
-  mixed adoNewConnection( 
-      string $driverType 
-  )  
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
Line 60: Line 56:
 |persist|true|[[v5:reference:connection:pconnect|pConnect()]]|Creates a persistent connection| |persist|true|[[v5:reference:connection:pconnect|pConnect()]]|Creates a persistent connection|
 |persistent|true|[[v5:reference:connection:pconnect|pConnect()]]|Creates a persistent connection| |persistent|true|[[v5:reference:connection:pconnect|pConnect()]]|Creates a persistent connection|
-|debug|true|[[v5:reference:debug|debug]]|Enables debug mode|+|debug|true|[[v5:userguide:debug|debug]]|Enables debug mode|
 |role|string||When using the ibase driver, allows setting a role| |role|string||When using the ibase driver, allows setting a role|
 |dialect|integer||Undocumented option| |dialect|integer||Undocumented option|
Line 75: Line 71:
  
 ===== Error Codes ===== ===== Error Codes =====
-As of version 6.0.0 , the following error codes will be returned if a connection fails. 
- 
-^Code^Description^ 
-|-1|An invalid driver name was given| 
-|-2|Unable to parse DSN string| 
-|-3|Connection to database via DSN string failed| 
-|-4|DSN option not supported by driver| 
- 
 Note that, because no connection object is available, the codes cannot be retrieved via [[v5:reference:connection:errormsg|errorMsg()]] Note that, because no connection object is available, the codes cannot be retrieved via [[v5:reference:connection:errormsg|errorMsg()]]
  
v5/reference/connection/adonewconnection.txt · Last modified: 2020/12/08 10:39 by peterdd