5.7 database insert/update
This tutorial is over a year old and may not apply to your version of Concrete CMS.
Nov 26, 2014
insert:
$db = Loader::db();
$db->Execute(
'INSERT INTO btArticles VALUES(?, ?, ?)',
array(
NULL,
$newPage->getCollectionID(),
$content
)
);
update:
$db = Loader::db();
$table = 'table-name';
$data = array(
'name' => 'John Smith',
'phone' => '+17867867564',
);
$db->update($table, $data, array('id' => 17);