hi guys
i'm having a bit of a problem displaying a timestamp (bigint) from mysql
as a date in php
i want to use gmt + 10 hours to get it to melbourne time
say it loops through ten times or somethingPHP Code:while($row = mysql_fetch_array($result)) {
$ts = mktime(gmdate("H:i:s M-d-Y", $row['editDate']));
$d = date("H:i:s d-M-Y", ($ts + 36000));
echo($d);
}
it will write out the same value (the newest date) for each row
even if they are all different
but if i write out the timestamp value
it will write out the different timestamp values
using unix_timestamp(now()) to update the database
so the problem is that it seems to only be executing
that function on the first value in the table
thanks for any help




) and it's probably only accepting the hour as its first parameter and forgetting about the rest.
Bookmarks