HexOnxOnx
Fri 11th Mar '05, 2:41pm
HI all
I have a custom made photo ratings site with some custom made forums. When a post is made, the time of the post is converted to the date using:
$post_time = mysql_result($result, $i, "post_time");
//Convert unix timestamp to date
$post_time = date("Y-m-d", $post_time);
Now if I try to add the actual time the post was made using:
$post_time1 = mysql_result($result, $i, "post_time");
I get this displayed on the post: 1110563187
How do I get this to show the actual time in the hour and minute the post was made
Thanks. I hope this is ok to post here since this isn't a script meant to compete with vB.
I have a custom made photo ratings site with some custom made forums. When a post is made, the time of the post is converted to the date using:
$post_time = mysql_result($result, $i, "post_time");
//Convert unix timestamp to date
$post_time = date("Y-m-d", $post_time);
Now if I try to add the actual time the post was made using:
$post_time1 = mysql_result($result, $i, "post_time");
I get this displayed on the post: 1110563187
How do I get this to show the actual time in the hour and minute the post was made
Thanks. I hope this is ok to post here since this isn't a script meant to compete with vB.