note 28711 deleted from function.date by philip

From: Date: Sat, 02 Aug 2003 15:46:44 +0000
Subject: note 28711 deleted from function.date by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53216@lists.php.net to get a copy of this message
Note Submitter: dave (no(at)spam) gripnet (.dot.) org ---- On a site I was working on I needed a little checking of a expiration date to the current date. The expiration date was being pulled from mysql (hence variable name) so it took a bit of thinking but I came up with this if($yyyy > $row[yyyy]){ require('private.php'); } else if($mm > $row[mm]){ require('private.php'); } else if($dd < $row[dd]){ require('private.php'); } else { echo('You no longer have access to private things!'); }

« previous php.notes (#53216) next »