/ LJCPHPCodeDoc / LJCDBAccessLib / LJCJoins / Add


Parameters
$tableName - The Join table name.
$tableAlias - The Join table alias.
$key - The optional key value.

Syntax

PHP
public function Add(string $tableName, string $tableAlias = null
, $key = null) : ?LJCJoin

Creates an object and adds it to the collection.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $joins = new LJCJoins();
 $joins->Add("TableName", "alias");

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