From 657d766fbd15ff531c1693ea4a0ed0b418e210f4 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 18 Jan 2025 13:20:39 -0500 Subject: [PATCH] Update Table UI for domain history --- ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ajax.php b/ajax.php index 2a251862..c36bf475 100644 --- a/ajax.php +++ b/ajax.php @@ -90,8 +90,8 @@ if (isset($_GET['domain_get_json_details'])) { // Get domain history $history_sql = mysqli_query($mysqli, "SELECT * FROM domain_history WHERE domain_history_domain_id = $domain_id"); - $history_html = ""; - $history_html .= ""; + $history_html = "
DateColumnOld ValueNew Value
"; + $history_html .= ""; while ($row = mysqli_fetch_array($history_sql)) { // Fetch data from the query and create table rows $history_html .= ""; @@ -101,7 +101,7 @@ if (isset($_GET['domain_get_json_details'])) { $history_html .= ""; $history_html .= ""; } - $history_html .= "
DateColumnOld ValueNew Value
" . htmlspecialchars($row['domain_history_new_value']) . "
"; + $history_html .= ""; // Return the HTML content to JavaScript $response['history'] = $history_html;