简体   繁体   English

从不同表行中减去值

[英]Subtracting values from different table row

I'm trying to subtract two values using this method, but it doesn't work for me. 我正在尝试使用此方法减去两个值,但对我来说不起作用。 Any idea how to subtract this using this way? 任何想法如何使用这种方式减去这个?

<td>'.$row['sales']-$row['return'].'</td>

将其括在括号中:

<td>' . ($row['sales'] - $row['return']) . '</td>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM