note 22272 deleted from function.date by sniper

From: Date: Sat, 11 Oct 2003 16:49:50 +0000
Subject: note 22272 deleted from function.date by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58255@lists.php.net to get a copy of this message
Note Submitter: matt@phparena.net ---- Heres just a little function that will display all the possible time differences // Saves us printing the hours manually for ($i = -11; $i <= 0; $i++) { $td .= "<option"; if ($faq->data['time_difference'] == $i) { $td .= " selected"; } $td .= ">$i</option>"; } for ($i = 1; $i <= 11; $i++) { $td .= "<option"; if ($faq->data['time_difference'] == $i) { $td .= " selected"; } $td .= ">+$i</option>"; }

« previous php.notes (#58255) next »