I have a time of H:i:s like 01:51:36 in my SQL table, how can we convert it to like the sum of time in seconds 01:51:36 = 110160 Seconds
My code:
SELECT * FROM tbl WHERE name = Time
while ($row = mysqli_fetch_array($result)) {
$Duration = date("%s seconds');", strtotime($row["audio_duration"]));
echo $Duration;
}
Results = %31 31UTC2022-08-08T00:02:31+00:00202280831');