can someone tell me if you spot anything wrong with this code:
Yes, it's just stupid. You've written ridiculous amounts of code where none is needed, and confused the assignment operator = with the comparison operator ==.
Code:
// BEGIN STAIRS/ELEVATORS VARIABLE DEFINITIONS
$o_Stairs = $e_Stairs = $d_Stairs = 0;
if(is_numeric($OStairs) && !is_float($OStairs))
$o_Stairs = $OStairs / 10;
if(is_numeric($EStairs) && !is_float($EStairs))
$e_Stairs = $EStairs / 10;
if(is_numeric($EStairs) && !is_float($EStairs))
$e_Stairs = $EStairs / 10;
// END STAIRS/ELEVATORS VARIABLE DEFINITIONS
$total += ($total * $o_Stairs) + ($total * $e_Stairs) + ($total * $d_Stairs);
Bookmarks