kaos Posted June 29, 2010 Share Posted June 29, 2010 Ok so i have the recentdate from the database now i want to basically i want to echo 1 hour ago if the post was between 1 and 2 hours if it was before an hour put xxminuites ago and if on a different day put xxday's ago instead of 28-06-2010 12:34 PM By itzwebmaster Demo legacy-studios.co.uk <-- this might help by what i mean THanks in advance Link to comment https://forums.phpfreaks.com/topic/206152-php-date-help/ Share on other sites More sharing options...
kaos Posted June 29, 2010 Author Share Posted June 29, 2010 the thing thats prints the date is currently $id=$_GET['id']; $sql="SELECT * FROM forum_question WHERE id='$id'"; $result=mysql_query($sql); $rows=mysql_fetch_array($result); (<? echo $rows['datetime']; ?>) Link to comment https://forums.phpfreaks.com/topic/206152-php-date-help/#findComment-1078606 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.