I'm doing a homework project and i'm having a slight problem on how to add another equation if a statement is true. Here is is the link to the project im working on http://tylerdperez.com/courses/fall_2008/CIS12_PHP_MySQL/09_11_08_PayRate/payinput.php.
I have the equation working fine when it consists of double time and so forth. If i wanted to add another if statement that would override the first one, how would I do that?
$check=$hours$payRate;
if($dblHours<$hours)$check+=($hours-$dblHours)($dblRate-$payRate);
This is what my other equation would look like...
$check=$hours$payRate;
if($trplHours<$dblhours)$check+=($dblhours-$trplHours)($dblRate-$payRate);
If doubletime is more than hours but less than tripletime, i would like the first equation to execute. If tripletime is more than double time, i would like equation number 2 to execute.
I would appreciate any help!
Thanks,
Tyler D. Perez