ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:userguide:learn_abstraction:establishing_connection

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
v5:userguide:learn_abstraction:establishing_connection [2016/03/15 14:45] mnewnhamv5:userguide:learn_abstraction:establishing_connection [2016/03/15 17:31] (current) – [Including The ADOdb libraries] review dregad
Line 2: Line 2:
 ~~NOTOC~~ ~~NOTOC~~
 ====== Establishing A Connection ====== ====== Establishing A Connection ======
-Before interacting with data, a connection needs to be first established to the database. The parameters required to connect to the database are the same as when using a direct PHP connection. For detailed information about connections see [[v5:reference:connection:connect|connect()]]+Before interacting with data, a connection needs to be first established to the database. The parameters required to connect to the database are the same as when using a direct PHP connection. For detailed information about connectionssee [[v5:reference:connection:connect|connect()]].
  
 ===== Selecting A Driver ===== ===== Selecting A Driver =====
-In addition to ensuring the correct database connection driver is available in the PHP configuration, a matching ADOdb driver must be selected. As a general rule, the **Native Mode** drivers (e.g. mysqli,postgres9,oci8) are faster and have more feature than generic drivers (e.g. odbc_mssql2012, pdo_access), so if you have the choice, you should select one of those.+In addition to ensuring the correct database connection driver is available in the PHP configuration, a matching ADOdb driver must be selected. As a general rule, the **Native Mode** drivers (e.g. mysqli, postgres9, oci8) are faster and have more features than generic drivers (e.g. odbc_mssql2012, pdo_access), so if you have the choice, you should select one of those.
 ===== Including The ADOdb libraries ===== ===== Including The ADOdb libraries =====
-ADOdb versions 5 and lower do not support class autoloading, so the base library must be included in all the programs that use its feature. Only the base class need be included, if extended feature is required that will be automatically included. See also the [[v5:userguide:include_guide|Include File Guide]]. +ADOdb versions 5 and lower do not support class autoloading, so the base library must be included in all the programs that use its features. Only the base class need be included, if required extended features are , they will be automatically included. See also the [[project:include_file_guide|Include File Guide]]. 
  
 <code php> <code php>
Line 36: Line 36:
   $db->debug = true;   $db->debug = true;
  
-The earliest that it can be set is after the creation of the ''$db'' connection object. It can also be switched on or off as required. For more information, see [[v5:userguide:debugging|Debugging]].+The earliest that it can be set is after the creation of the ''$db'' connection object. It can also be switched on or off as required. For more information, see [[v5:userguide:debug|Debugging Guide]].
    
v5/userguide/learn_abstraction/establishing_connection.1458049554.txt.gz · Last modified: 2017/04/21 11:40 (external edit)