Parameters
$dbServer - The DB Server name.
$dbName - The Database name.
$userID - The user name.
$password - The user Password.
Syntax
PHP |
public function SetConnectionValues(string $dbServer, string $dbName , string $userID, string $password)
|
Sets the $ConnectionValues property.
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);
// Change some of the object properties.
$tableName = "NewTableName";
$dbAccess->SetConnectionValues($database, $tableName);
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.