I am trying 2 different things that I don`t get to work.
First, I am trying divide $dt (epoch time 13 characters) to divide by 1000 so it shows the correct date and time since it is saved in the MySQL database in miliseconds. I tried to divide it with /1000 on different places in the PHP, and in the MySQL query with different examples from the internet, but with everything I try I get a different error.
Second, I want the output of BackupState to be an image. For example, $row['BackupState'] shows STATE_SUCCESS, STATE_SUCCCES_WITH_WARNINGS, STATE_BUSY or STATE_NOT_COMPLETED. For every state I would like to show a different image.<?php
$conn = new mysqli('host', 'user', '', 'database');
if ($conn->connect_error) {
die("Connection error: " . $conn->connect_error);
}
$result