From 45f2236770ba3bf967f5f14a330deba5db740858 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 26 Jan 2023 17:29:47 -0500 Subject: [PATCH] Show number of shared links on the client side nav --- client_side_nav.php | 8 +++++++- inc_all_client.php | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/client_side_nav.php b/client_side_nav.php index 20f3c94c..d72b3c84 100644 --- a/client_side_nav.php +++ b/client_side_nav.php @@ -310,7 +310,13 @@ diff --git a/inc_all_client.php b/inc_all_client.php index 8ffd2617..ddf359b3 100644 --- a/inc_all_client.php +++ b/inc_all_client.php @@ -183,6 +183,9 @@ if (isset($_GET['client_id'])) { $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('trip_id') AS num FROM trips WHERE trip_archived_at IS NULL AND trip_client_id = $client_id")); $num_trips = $row['num']; + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('item_id') AS num FROM shared_items WHERE item_client_id = $client_id")); + $num_shared_links = $row['num']; + // Expiring Items // Count Domains Expiring within 30 Days