/** * Moves the order of a record * @param integer - The increment to reorder by */ function orderBooks($bid, $inc, $option) { global $database; $book = new mosBookLibrary($database); $book->load($bid); $book->move($inc); mosRedirect("index.php?option={$option}"); }