getNoteBookContents($_REQUEST['notebookid']); } $returnvalue = array('status' => $status, 'contents' => $contents); echo Zend_Json::encode($returnvalue); function SaveNotebookContents(){ if(empty($_REQUEST['notebookid'])){ return false; }else{ $notebookid = $_REQUEST['notebookid']; } global $adb,$current_user; $contents = $_REQUEST['contents']; $sql = "update vtiger_notebook_contents set contents=? where userid=? and notebookid=?"; $adb->pquery($sql, array($contents, $current_user->id, $notebookid)); return true; } ?>