11.12.2011, 15:57
hi,
sorry for this php question but its another tiny problem:
thx in advance
sorry for this php question but its another tiny problem:
PHP код:
//i select time from the database where the user accounts are saved.
//The time saved in the "time" column is an unix timestamp saved with gettime(); on the server.
//So there is e.g. 52 saved in the time column. That would be 52 seconds.
//But if the player plays longer the number gets bigger and my question is how i can format it
//correctly like: Hours:Minnutes:Seconds in 00:00:00 format?
<?php
$result = "SELECT time FROM Users";
$row = mysql_query($result) or die("Data transfer failed!");
<td><?=$pTime = $row['time'];
echo date("H:i:s", $pTime);?></td>
?>
//it shows the time but not correctly. So what im doing wrong?
