2 function set_as_read() {
4 $user_id = $_SESSION['user_id'];
5 $forums = $_POST['bookmarks_chosen'];
7 foreach ($forums as $forum) {
8 $db->update("update node_access set node_user_subchild_count = '0',
9 last_visit = NOW() where node_id = '$forum' and user_id = '$user_id'");