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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -