A
Ashley!
Guest
Hi, i am making a calculator for a website.
I have two equations set up (below): one is for if you are located in MO, so sales tax would apply. the other is for any other state (no sales tax would apply.)
Here are the equations the way i have them set up:
if ($state = ('MO')){
$price = ((($package + ($songs * $songprice) + ($ts * $tsprice) + ($copies * $copyprice)) * $tax) + $ship);
}
else {
$price = (($package + ($songs * $songprice) + ($ts * $tsprice) + ($copies * $copyprice) + $ship));
}
all variables are irrelevant, the line i think i am having trouble with is the line with " if ($state = ('MO')){ "
Thanks for your help
I have two equations set up (below): one is for if you are located in MO, so sales tax would apply. the other is for any other state (no sales tax would apply.)
Here are the equations the way i have them set up:
if ($state = ('MO')){
$price = ((($package + ($songs * $songprice) + ($ts * $tsprice) + ($copies * $copyprice)) * $tax) + $ship);
}
else {
$price = (($package + ($songs * $songprice) + ($ts * $tsprice) + ($copies * $copyprice) + $ship));
}
all variables are irrelevant, the line i think i am having trouble with is the line with " if ($state = ('MO')){ "
Thanks for your help