From 733e7419291bef9eee3b53986a3f7a999819224a Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Fri, 25 Sep 2026 18:52:43 +0200 Subject: [PATCH] Support last update date #20 --- cms/add_show_json.php | 2 +- cms/comment_process.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/add_show_json.php b/cms/add_show_json.php index dc480cf..6ff1144 100644 --- a/cms/add_show_json.php +++ b/cms/add_show_json.php @@ -567,7 +567,7 @@ if (mysqli_errno( $connection )) { problem("MySQL error- The show $ep_num was not added to the eps db.\n$error"); } -$result = mysqli_query($connection, "UPDATE reservations SET `status` = 'SHOW_POSTED' WHERE `ep_num` = '$ep_num' AND status='SHOW_SUBMITTED';" ); +$result = mysqli_query($connection, "UPDATE reservations SET `status` = 'SHOW_POSTED' WHERE `ep_num` = '$ep_num' AND status='SHOW_SUBMITTED'; UPDATE last_update SET last_udate_timestamp = CURRENT_TIMESTAMP;" ); if (!isset($result)) { problem("DB problem - The show $ep_num has not been added to the eps db"); } diff --git a/cms/comment_process.php b/cms/comment_process.php index 82fea05..7f863cd 100755 --- a/cms/comment_process.php +++ b/cms/comment_process.php @@ -121,7 +121,7 @@ if ( $action === 'publish' ) { } - $query_add = "INSERT INTO comments (eps_id,comment_timestamp,comment_author_name,comment_title,comment_text) VALUES ( '{$ep_num}', '{$comment_timestamp_db}', '{$comment_author_name}', '{$comment_title}', '{$comment_text}')"; + $query_add = "INSERT INTO comments (eps_id,comment_timestamp,comment_author_name,comment_title,comment_text) VALUES ( '{$ep_num}', '{$comment_timestamp_db}', '{$comment_author_name}', '{$comment_title}', '{$comment_text}');UPDATE last_update SET last_udate_timestamp = CURRENT_TIMESTAMP;"; $result = mysqli_query($connection, $query_add ); if(!$result) {