PHP My first function (help)!!!!
| From: | Frank Tudor | Date: | Wed, 13 Aug 2003 17:39:39 +0000 |
| Subject: | PHP My first function (help)!!!! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21139@lists.php.net to get a copy of this message | ||
Guys I need help!
I think I am on the right track with my logic but my code fails.
Can someone help? (my coding is weak no formal training).
Thanks,
Frank
$TotalString = "$total";
function Price($total)
{
if "$total" <= "24" then "$total" * "3200"
else
if "$total" >= "25" and "$total" <= "49" then
"$total" *
"3000"
else
if "$total" >= "50" and "$total" <= "99" then
"$total" *
"2900"
else
if "$total" >= "100" then "$total" * "2700"
return "$Price";
}
echo "$Price";
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com