title: How can we convert H:i:s Time from sql table to second?
body: <p>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</p>
  <p>My code:</p>
  <pre><code>SELECT * FROM tbl WHERE name = Time
  
  
  while ($row = mysqli_fetch_array($result)) {
  
  
  $Duration = date(&quot;%s seconds');&quot;, strtotime($row[&quot;audio_duration&quot;]));
  
  echo $Duration;
  
  }
  </code></pre>
  <p>Results = %31 31UTC2022-08-08T00:02:31+00:00202280831');</p>