Returns
The PDO connection object.
Syntax
PHP |
public function GetConnection()
|
Creates the PDO connection.
Example
PHP |
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/LJCDBAccessLib.php";
// See constructor for how to create $connectionValues.
$dbAccess = new LJCDbAccess($connectionValues);
$connection = $dbAccess->GetConnection();
if ($connection != null)
{
// Use connection to perform low level data access.
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.