Re: mon question/problem?

From: Date: Thu, 17 Apr 2003 11:22:06 +0000
Subject: Re: mon question/problem?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27142@lists.php.net to get a copy of this message
<?php $dayselect = '<select name="form_date" id="form-date">'; $month = 4; $day = 17; $year = 2003; for ($i = 0; $i < 170; $i++) { #Sunday || Saturday is not a bussiness day $numday = date('w', mktime(0,0,0,$month,$day+$i,$year)); if ( ($numday != 0) && ($numday != 6) ) { $date = date('l Y-m-d', mktime(0,0,0,$month,$day+$i,$year)); $dayselect .= "<option value='$date'>$date</option>"; } } $dayselect .= '</select>'; echo $dayselect; ?>

« previous php.db (#27142) next »