From 06cde1a119df4ccffbe8bc6145e12f0af632cc2a Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 19 Feb 2022 16:17:07 -0500 Subject: [PATCH] Cleaned up the new JS edit Modal sperating Javascript vars with camelCase and php var with seperate_words --- client_network_edit_modal.php | 16 +++---- client_networks.php | 85 ++++++++++++++++------------------- post.php | 10 ++--- 3 files changed, 51 insertions(+), 60 deletions(-) diff --git a/client_network_edit_modal.php b/client_network_edit_modal.php index f334b73a..32eff29b 100644 --- a/client_network_edit_modal.php +++ b/client_network_edit_modal.php @@ -2,13 +2,13 @@ @@ -37,7 +37,7 @@
- + @@ -47,7 +47,7 @@
- + @@ -57,7 +57,7 @@
- + @@ -67,7 +67,7 @@
- diff --git a/client_networks.php b/client_networks.php index a27144c6..bf2b1e6c 100644 --- a/client_networks.php +++ b/client_networks.php @@ -1,9 +1,3 @@ - - - - \ No newline at end of file diff --git a/post.php b/post.php index 0b9be798..b0fd2532 100644 --- a/post.php +++ b/post.php @@ -4968,16 +4968,14 @@ if(isset($_GET['network_get_json_details'])){ $network_id = intval($_GET['network_id']); $client_id = intval($_GET['client_id']); - $network_sql = mysqli_query($mysqli,"SELECT * FROM networks - WHERE network_id = $network_id - AND network_client_id = $client_id"); + $network_sql = mysqli_query($mysqli,"SELECT * FROM networks WHERE network_id = $network_id AND network_client_id = $client_id"); while($row = mysqli_fetch_array($network_sql)){ $response['network'][] = $row; } - $locations_sql = mysqli_query($mysqli, "SELECT location_id, location_name FROM locations - WHERE location_client_id = '$client_id' - AND company_id = '$session_company_id'"); + $locations_sql = mysqli_query($mysqli, "SELECT location_id, location_name FROM locations + WHERE location_client_id = '$client_id' AND company_id = '$session_company_id'" + ); while($row = mysqli_fetch_array($locations_sql)){ $response['locations'][] = $row; }