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:adonewconnection [2016/01/13 02:31] – ↷ Links adapted because of a move operation mnewnhamv5:reference:connection:adonewconnection [2016/01/17 15:28] mnewnham
Line 1: Line 1:
 ====== adoNewConnection ====== ====== adoNewConnection ======
 ~~NOTOC~~ ~~NOTOC~~
-<WRAP alert> 
-Not passing a driver name as the parameter to this function does nothing but return an html string indication that the no driver name was passed. This behavior will be removed in version 6.0.0. 
-</WRAP> 
-<WRAP alert> 
-Passing an invalid or missing driver name as the parameter to this function returns an html formatted string. This behavior will be change in version 6.0.0. If an error occurs, the function will return a numeric error. See the guide below. 
-</WRAP> 
 <WRAP right box> <WRAP right box>
-== Syntax before version 6.0.0 ==+== Syntax ==
      
   mixed adoNewConnection(   mixed adoNewConnection(
Line 14: Line 8:
   )   )
    
-== Syntax version 6.0.0 == 
-  mixed adoNewConnection( 
-      string $driverType 
-  )  
 </WRAP> </WRAP>
 ===== Description ===== ===== Description =====
Line 31: Line 21:
 ** **
  
-If the DSN string parses correctly, an attempt is made to automatically connect to the database. If the connection succeeds, then there is no need to issue a [[v5:reference:connect|connect()]] statement.+If the DSN string parses correctly, an attempt is made to automatically connect to the database. If the connection succeeds, then there is no need to issue a [[v5:reference:connection:connect|connect()]] statement.
 ===== Usage ===== ===== Usage =====
 ==== Simple Usage ==== ==== Simple Usage ====
Line 63: Line 53:
  
 ^Code^Value^Parameter^Description^ ^Code^Value^Parameter^Description^
-|new|true|[[v5:reference:nconnect|nConnect()]]|Forces a new connection| +|new|true|[[v5:reference:connection:nconnect|nConnect()]]|Forces a new connection| 
-|persist|true|[[v5:reference:pconnect|pConnect()]]|Creates a persistent connection| +|persist|true|[[v5:reference:connection:pconnect|pConnect()]]|Creates a persistent connection| 
-|persistent|true|[[v5:reference: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|
-|charset|string|[[v5:reference:setcharset|setCharSet()]]|Sets a character set|+|charset|string|[[v5:reference:connection:setcharset|setCharSet()]]|Sets a character set|
 |buffers|string||Undocumented option| |buffers|string||Undocumented option|
-|fetchmode|int|[[v5:reference:setfetchmode|setFetchMode()]]|Sets the fetch mode|+|fetchmode|int|[[v5:reference:connection:setfetchmode|setFetchMode()]]|Sets the fetch mode|
 |charpage|string||Undocumented option| |charpage|string||Undocumented option|
 |clientflags|string||Undocumented option| |clientflags|string||Undocumented option|
Line 89: Line 79:
 |-4|DSN option not supported by driver| |-4|DSN option not supported by driver|
  
-Note that, because no connection object is available, the codes cannot be retrieved via [[v5:reference: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