/ LJCPHPCodeDoc / LJCDBAccessLib / LJCJoinOns / Add


Parameters
$fromColumnName - The 'from' column name.
$toColumnName - The 'to' column name.
$key - The optional key value.

Syntax

PHP
public function Add(string $fromColumnName, string $toColumnName
, $key = null) : ?LJCJoinOn

Creates an object and adds it to the collection.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $joinOns = new LJCJoinOns();
 $joinOns->Add("FromColumnName", "ToColumnName");

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.