/ LJCPHPCodeDoc / LJCDBAccessLib / LJCDbColumns / Add


Parameters
$columnName - The Column name.
$propertyName - The Property name.
$dataTypeName - The DataType name.
$value - The Column value.
$key - The collection array key.

Syntax

PHP
public function Add(string $columnName, ?string $propertyName = null
, ?string $renameAs = null, string $dataTypeName = "string"
, ?string $value = null, $key = null) : ?LJCDbColumn

Creates an object and adds it to the collection.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 $dbColumns = new LJCDbColumns();
 $dbColumns->Add("ID", dataTypeName: "int");

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