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 |
$webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
require_once "$webCommonPath/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.