Commit | Line | Data |
---|---|---|
51ff3226 | 1 | <?php |
2 | function set_as_read() { | |
3 | global $db; | |
4 | $user_id = $_SESSION['user_id']; | |
5 | $forums = $_POST['bookmarks_chosen']; | |
6 | ||
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'"); | |
10 | } | |
11 | } | |
12 | ?> |