2,
'portability' => DB_PORTABILITY_LOWERCASE|DB_PORTABILITY_RTRIM|DB_PORTABILITY_DELETE_COUNT|DB_PORTABILITY_NUMROWS|DB_PORTABILITY_ERRORS|DB_PORTABILITY_NULL_TO_EMPTY,
);
// attempt connection
$dbh = DB::connect($datasource,$options);
// if connection failed show error
if(DB::isError($dbh)) {
$_SESSION['ari_error'] .= $dbh->getMessage() . "
";
return;
}
return $dbh;
}
}
?>