Support last update date #20

This commit is contained in:
2026-09-26 15:40:28 +02:00
parent 733e741929
commit 01ec497f9f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -538,7 +538,7 @@ $summary = mysqli_real_escape_string( $connection, $summary );
$notes = mysqli_real_escape_string( $connection, $notes );
$tags = mysqli_real_escape_string( $connection, $tags );
$query_add = "INSERT INTO eps VALUES ('$ep_num', '{$ep_date}', '{$title}', '{$duration}', '{$summary}', '{$notes}', '{$host_id}', '{$series_id}', '{$explicit}', '{$episode_license}', '{$tags}', '0', '0', '0')";
$query_add = "INSERT INTO eps (id,date,title,duration,summary,notes,hostid,series,explicit,license,tags) VALUES ('$ep_num', '{$ep_date}', '{$title}', '{$duration}', '{$summary}', '{$notes}', '{$host_id}', '{$series_id}', '{$explicit}', '{$episode_license}', '{$tags}')";
logextra( "About to add to db" );
@@ -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'; UPDATE last_update SET last_udate_timestamp = CURRENT_TIMESTAMP;" );
$result = mysqli_query($connection, "UPDATE reservations SET `status` = 'SHOW_POSTED' WHERE `ep_num` = '$ep_num' AND status='SHOW_SUBMITTED';" );
if (!isset($result)) {
problem("DB problem - The show $ep_num has not been added to the eps db");
}