WebBasic CMS


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 .


name of the form (table) contains the dataset
multidimensional array with the stored information
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 :

   ,"header"=>"My page"
   ,"text"=>"This is a test page"
if ($res==null) {
   echo "Error";
} else {
   echo "Saved {$res} bytes";