TwistPHP Documentation

insertRow

File path: dist/twist/Core/Models/Database/ProtocolJSON.model.php
Namespace: Twist\Core\Models\Database
Extends:

insertRowInsert a record into a table

Parameters

Name Type Description
$strTablestringn/a
$arrDataarrayn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strTable 'foo';
$arrData = array(=> 'foo'=> 'bar');

//Call the function insertRow with the example vars
$resProtocolJSON = new \Twist\Core\Models\Database\ProtocolJSON();
$resProtocolJSON -> insertRow($strTable$arrData);