Jump to content

[SOLVED] New Posts


supanoob

Recommended Posts

Here's some pseudocode:

 

$postTimeStamp = 1010101010; // Could get this from a DB
$now = time();
$newThreshold = 1 *24*60*60; // 1 day in seconds
if($now - $postTimeStamp <= $newThreshold)
  echo "<b>".$postContent."</b>";
else
  echo $postContent;

 

Maybe that helps you?

Link to comment
https://forums.phpfreaks.com/topic/67106-solved-new-posts/#findComment-336555
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.