php - Subtracting values from different table row -
i'm trying subtract 2 values using method, doesn't work me. idea how subtract using way?
<td>'.$row['sales']-$row['return'].'</td>
wrap in parentheses:
<td>' . ($row['sales'] - $row['return']) . '</td>
Comments
Post a Comment