Returns
The PDO connection object.
Syntax
PHP |
public function GetConnection()
|
Creates the PDO connection.
Example
PHP |
include_once "LJCRoot.php";
$prefix = RelativePrefix();
include_once "$prefix/LJCPHPCommon/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.