I have a database linked upto a game. When the game insert's the players "playtime" it adds it like this for each player faction
playtime "[0,0,0]" (COP,MEDIC,CIV)
- so each of the 0's would represent each player faction.
While the player is playing as that faction only 1 number will update which that number is for that faction.
Example
playtime "[9012,1221,2663]"
- so the player has now played for
44 Hours and 23 Minutes
on CIV and 20 Hours and 21 Minutes
on MEDIC and 150 Hours and 12 Minutes
on COP
What I am trying to is display each number in a table, and show the time in table for each row ...
EXAMPLE
<table>
<tr>
<td>cop</td>
<td>medic</td>
<td>civ</td>
</tr>
<tr>
<td>150 Hours and 12 Minutes</td>
<td>20 Hours and 21 Minutes</td>
<td>44 Hours and 23 Minutes</td>
</tr>
</table>
So without displaying it in the time I've posted above, I am wanting to display each output as hour/minutes and in their respective table row.
I currently am using this
<td> " . str_replace( array('[',']', '"') , '' ,$row['playtime']). "</td>
which only shows the time like so 0,0,2891
If this does not make sense, please tell me.