$sql='UPDATE `tbl_serv_tests` SET `time_end_wish`="'.mysqli_real_escape_string($db,$end->format(DATE_ISO8601)).'", `test_status`="aborting" WHERE `serv_tests_key`='.$existing_test_id;
mysqli_query($db,$sql)orflocklab_die('Cannot store test configuration in database because: '.mysqli_error($db));