From 807bbef3e2f9bd6fd48f0053699a55f0144b9ff5 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 30 Oct 2024 14:51:39 -0400 Subject: [PATCH] Use Tag array instead of querying by tag name when clicking on a tag to reveal other items with the same tag, this allow more narrowed searches --- client_contacts.php | 2 +- client_locations.php | 2 +- client_logins.php | 4 ++-- clients.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client_contacts.php b/client_contacts.php index 57741d43..3546f7fe 100644 --- a/client_contacts.php +++ b/client_contacts.php @@ -328,7 +328,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } $contact_tag_id_array[] = $contact_tag_id; - $contact_tag_name_display_array[] = "$contact_tag_name"; + $contact_tag_name_display_array[] = "$contact_tag_name"; } $contact_tags_display = implode('', $contact_tag_name_display_array); diff --git a/client_locations.php b/client_locations.php index f3fd0a92..248476c5 100644 --- a/client_locations.php +++ b/client_locations.php @@ -225,7 +225,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } $location_tag_id_array[] = $location_tag_id; - $location_tag_name_display_array[] = "$location_tag_name"; + $location_tag_name_display_array[] = "$location_tag_name"; } $location_tags_display = implode('', $location_tag_name_display_array); diff --git a/client_logins.php b/client_logins.php index 07f953a6..4ff54a7d 100644 --- a/client_logins.php +++ b/client_logins.php @@ -54,7 +54,7 @@ $sql = mysqli_query( WHERE l.login_client_id = $client_id $tag_query AND l.login_$archive_query - AND (l.login_name LIKE '%$q%' OR l.login_description LIKE '%$q%' OR l.login_uri LIKE '%$q%') + AND (l.login_name LIKE '%$q%' OR l.login_description LIKE '%$q%' OR l.login_uri LIKE '%$q%' OR tag_name LIKE '%$q%') $location_query ORDER BY l.login_important DESC, $sort $order LIMIT $record_from, $record_to" ); @@ -257,7 +257,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } $login_tag_id_array[] = $login_tag_id; - $login_tag_name_display_array[] = "$login_tag_name"; + $login_tag_name_display_array[] = "$login_tag_name"; } $login_tags_display = implode('', $login_tag_name_display_array); diff --git a/clients.php b/clients.php index 7f257b92..3d93dfb7 100644 --- a/clients.php +++ b/clients.php @@ -331,7 +331,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } $client_tag_id_array[] = $client_tag_id; - $client_tag_name_display_array[] = "$client_tag_name"; + $client_tag_name_display_array[] = "$client_tag_name"; } $client_tags_display = implode('', $client_tag_name_display_array);