WebBasic CMS
References

wbItemSave()

save item to the form (table)

wbItemSave(string $form , array  $item[ , bool $flush = false] )

Function save a single record in to the form (table). As result return the count of bytes stored data. In case of failure, will returns NULL .

Arguments:

$form
name of the form (table) contains the dataset
$item
multidimensional array with the stored information
$flush
if true data immediately flushed from the cache to the file, otherwise the cache is reset is happening after the entire script. By default, false .

Example :

<?php
$Item=array(
    "id"=>"mypage"
   ,"header"=>"My page"
   ,"text"=>"This is a test page"
   ,"active"=>"on"
);
$res=wbItemSave("pages",$Item);
if ($res==null) {
   echo "Error";
} else {
   echo "Saved {$res} bytes";
}
?>