Jump to content

Deactivate Link based on condition


vijdev

Recommended Posts

Psuedo code

 

$post_date = timestamp of the date requirement was originally posted

$now_date = current timestamp

$diff = $now_date - $post_date

$three_days = 24 * 60 * 60

if ($diff > $three_days) {

  requirement

}else{

  <a href"blah_blah"> requirement </a>

}

 

-----------

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.