Support last update date #20

This commit is contained in:
2026-09-25 18:52:43 +02:00
parent 087d963c49
commit 733e741929
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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");
}
+1 -1
View File
@@ -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) {