//$u = isset($_REQUEST['u']) ? $_REQUEST['u'] : '0'; if (isset($_REQUEST['mine'])) { $col = 'its_mine'; $value = !!$_REQUEST['mine']; //###Should claiming an article means also automatically follow it? Controller::a_claim($u, $a); } elseif (isset($_REQUEST['delete'])) { $col = 'deleted'; $value = !!$_REQUEST['delete']; } elseif (isset($_REQUEST['readlater'])) { $col = 'read_later'; $value = !!$_REQUEST['readlater']; } elseif (isset($_REQUEST['follow'])) { $col = 'followed'; $value = !!$_REQUEST['follow']; Controller::a_follow($u, $a); } elseif (isset($_REQUEST['read'])) { $col = 'pdfread'; //### it may be necessary to sanitize the input.. but prepare/execute may not need it //### it may be necessary to decide if adding just one to the field. $value = $_REQUEST['read']; } elseif (isset($_REQUEST['bookmark'])) { $col = 'bookmarked'; //### it may be necessary to sanitize the input.. but prepare/execute may not need it $value = $_REQUEST['bookmark']; } elseif (isset($_REQUEST['comments'])) { //### need to be decide how it works $col = 'comments'; $value = $_REQUEST['comments']; } elseif (isset($_REQUEST['persnote'])) { $col = 'personal_note';