update("sessions", ["notes" => $jkp['note']], ["id" => $jkp['convid']]); if ($result) { // Ajax Request if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { header('Cache-Control: no-cache'); die(json_encode(array('status' => 1, 'label' => "note"))); } } else { // Ajax Request if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { header('Cache-Control: no-cache'); die(json_encode(array('status' => 2, 'txt' => $jkl['i']))); } } } // Get the note if (isset($page1) && is_numeric($page1)) $getnote = $jakdb->get("sessions", "notes", ["id" => $page1]); // Call the template $template = 'notes.php'; ?>