Jump to content

how to set EXPIRY for HREF Link without using DB


pavanpuligandla

Recommended Posts

put a createdate in the table. Along with Expiration date. When a user pulls up the page if it's later than the expiration don't display it.

if(!date("Y-m-d") > date("Y-m-d", strtotime($row_from_database['expiration_date'])) 
{
                     echo "Your link here"; 
}

put a createdate in the table. Along with Expiration date. When a user pulls up the page if it's later than the expiration don't display it.

 

hey thanks for that!!

instead of saving it to the database, can we achieve the same as above?

please let me know..

thanks.

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.