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;