Commit | Line | Data |
---|---|---|
51ff3226 | 1 | <?php |
2 | function unbook_multi() { | |
3 | ||
4 | global $db,$error,$node; | |
5 | $bookmarks=$_POST['bookmarks_chosen']; | |
6 | ||
7 | foreach ($bookmarks as $chosen_id) { | |
8 | $q="update neurons set link='soft' where synapse_creator='".$_SESSION['user_id']."' and src='".$chosen_id."' and link='bookmark'"; | |
9 | $db->update($q); | |
10 | ||
11 | $q="update node_access set last_visit='',node_bookmark='no' where user_id='".$_SESSION['user_id']."' and node_id='".$chosen_id."'"; | |
12 | $db->query($q); | |
13 | } | |
14 | return true; | |
15 | } | |
16 | ?> |