// create some dummy data to insert into the pages table
$page = array();
$page['path'] = "some path";
$page['title'] = "some title";
$page['description'] = "some description";
$page['content'] = "some content";
$page['categoryId'] = 1;
$page['publishedDate'] = date('Y-m-d', time());
$page['active'] = 'yes';

echo("<br>INSERT PAGE");

$page = $pda->insertPage($page);
var_dump($page); // Note the pageId that is assigned by the database

/*
echo("<br>UPDATE PAGE");

// change the data
$page['path'] = "some other path";
$page['title'] = "some other title";
$page['description'] = "some other description";
$page['content'] = "some other content";
$page['categoryId'] = 2;
$page['publishedDate'] = date('Y-m-d', time());
$page['active'] = 'no';

$page = $pda->updatePage($page);
var_dump($page);
*/