range if/else...broken
| From: | John Corry | Date: | Thu, 31 Aug 2000 02:59:36 +0000 |
| Subject: | range if/else...broken | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14498@lists.php.net to get a copy of this message | ||
//this returns the integer, 242.
$day = (date("z"));
// this *should* return a value for $price that comes from the field
'lo_price'
// but it doesn't...why not?
if ($day == range(105,349)) {
$price = $myrow['lo_price'];
} else {
$price =$myrow['hi_price'];
}
Thank you, I'm having a blast learning this stuff...
John Corry