From 3924e67dd17b3b18b5bade3b7f2d9e6076f3ee0e Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sat, 25 Feb 2023 19:24:48 +0000 Subject: [PATCH] Rename field as part of adding tag search --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 2ce1cf54..49b2bdc8 100644 --- a/post.php +++ b/post.php @@ -1835,7 +1835,7 @@ if(isset($_POST['add_client'])){ if(isset($_POST['tags'])){ foreach($_POST['tags'] as $tag){ $tag = intval($tag); - mysqli_query($mysqli,"INSERT INTO client_tags SET client_tags_client_id = $client_id, tag_id = $tag"); + mysqli_query($mysqli,"INSERT INTO client_tags SET client_tags_client_id = $client_id, client_tags_tag_id = $tag"); } }