Update constructs to not have parenthesis.

This commit is contained in:
o-psi
2023-10-20 15:25:52 -05:00
parent 56b91f3278
commit 53c11edc8c
209 changed files with 1591 additions and 800 deletions

View File

@@ -1,7 +1,9 @@
<?php
require_once('../validate_api_key.php');
require_once('../require_post_method.php');
require_once '../validate_api_key.php';
require_once '../require_post_method.php';
// Parse Info
$contact_id = intval($_POST['contact_id']);
@@ -14,7 +16,8 @@ if (!empty($contact_id)) {
$contact_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_id = '$contact_id' AND contact_client_id = $client_id LIMIT 1"));
// Variable assignment from POST - assigning the current database value if a value is not provided
require_once('contact_model.php');
require_once 'contact_model.php';
$update_sql = mysqli_query($mysqli, "UPDATE contacts SET contact_name = '$name', contact_title = '$title', contact_department = '$department', contact_email = '$email', contact_phone = '$phone', contact_extension = '$extension', contact_mobile = '$mobile', contact_notes = '$notes', contact_auth_method = '$auth_method', contact_important = '$important', contact_billing = '$billing', contact_technical = '$technical', contact_location_id = $location_id, contact_client_id = $client_id WHERE contact_id = $contact_id LIMIT 1");
@@ -29,4 +32,5 @@ if (!empty($contact_id)) {
}
// Output
require_once('../update_output.php');
require_once '../update_output.php';