I am trying to convert this data I pull from the database "[29,0,246]". That is the data it pull from one of the coluums of a user. It is like how long they have been on for in minutes and the 3 data values measure for different parts. I was wondering if you were able to split them up into 3 different things and turn them into hour format. Mysqli and php
if( isset( $_POST['submit-search'] ) ) {
$search = mysqli_real_escape_string($conn, $_POST['search']);
$sql = "SELECT * FROM players WHERE name LIKE '%$search%'";
$result = mysqli_query($conn, $sql);
$queryResults = mysqli_num_rows($result);
if( $queryResults > 0 ) {
while ($row = mysqli_fetch_assoc($result)) {
echo "<div class='article'>
<h1>".$row['name']."</h1>
<h2>". "Last connected at " .$row['last_seen']."<h2>
<h2>". "Cash: " .$row['cash']."<h2>
<h2>". "Bank Account: " .$row['bankacc']."<h2>
<h2>". "Time played: " .$row['playtime']."<h2>
</div>";
}
} else {
echo "There are no results matching your search";
}
}