Feature: Records per page is now user specific and persists with logout/login sessions

This commit is contained in:
johnnyq
2023-08-17 19:42:42 -04:00
parent 94caee4aa6
commit ce2ba6d3d2
8 changed files with 1009 additions and 1003 deletions

View File

@@ -8,7 +8,9 @@
if(isset($_POST['change_records_per_page'])){
$_SESSION['records_per_page'] = intval($_POST['change_records_per_page']);
$records_per_page = intval($_POST['change_records_per_page']);
mysqli_query($mysqli,"UPDATE user_settings SET user_config_records_per_page = $records_per_page WHERE user_id = $session_user_id");
header("Location: " . $_SERVER["HTTP_REFERER"]);