RE: [PHP] Shipping Rates
| From: | Ralph | Date: | Sun, 01 Jun 2003 08:54:42 +0000 |
| Subject: | RE: [PHP] Shipping Rates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149719@lists.php.net to get a copy of this message | ||
I thought about this but how would I go about performing greater than or
equal to without having to specify a CASE for every price range?
-----Original Message-----
From: Jason Paschal [mailto:j_paschal@hotmail.com]
Sent: Sunday, June 01, 2003 1:47 AM
To: ralph@nqionline.com
Subject: Re: [PHP] Shipping Rates
this, maybe?
http://www.php.net/switch
>From: Ralph <ralph@nqionline.com>
>To: PHP General Mailing List <php-general@lists.php.net>
>Subject: [PHP] Shipping Rates
>Date: Sun, 01 Jun 2003 01:48:30 -0700
>
>Maybe it's just that it's late, but can't seem to figure this out. I
>want to show a shipping price depending on the amount of purchase. I
>thought about using a lot of if() statements, but I know this is not
the
>best way to go about this.
>
>Can anybody enlighten me on this one and give me a better approach.
>
>Here is an example of my shipping rates:
>
>Less than $20.00 = $7.45
>$20.01-$35.00 = $8.45
>$35.01- $55.00 = $9.45
>$55.01-$80.00 = $10.45
>$80.01-$100.00 = $11.45
>$100.01-$150.00 = $13.45
>$150.01-$200.00 = $15.55
>$200.01 or more = $19.45
>
>Thanks.
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail