php time format !+reps!
#1

hi,

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?
thx in advance
Reply


Messages In This Thread
php time format !+reps! - by PawnoQ - 11.12.2011, 15:57
Re: php time format !+reps! - by sciman001 - 11.12.2011, 16:50
Re: php time format !+reps! - by PawnoQ - 11.12.2011, 17:09
Re: php time format !+reps! - by PawnoQ - 12.12.2011, 14:52
Re: php time format !+reps! - by sleepysnowflake - 12.12.2011, 14:57
Re: php time format !+reps! - by PawnoQ - 12.12.2011, 15:14
Re: php time format !+reps! - by sleepysnowflake - 12.12.2011, 15:20
Re: php time format !+reps! - by PawnoQ - 12.12.2011, 15:23
Re: php time format !+reps! - by sleepysnowflake - 12.12.2011, 15:27
Re: php time format !+reps! - by PawnoQ - 12.12.2011, 15:30

Forum Jump:


Users browsing this thread: 2 Guest(s)