echo two fields data subtracted from each other in php
<pre><code>echo "&lt;&lt;td&gt;td&gt;".$rec["year1"] * $rec["year2"]."&lt;&lt;/td&gt;/td&gt;";
</code></pre>

<p>Now this works. But when I replace '*' with a '-' (minus) it doesn't work and gives the list of 4rec["id"] values with minus symbol infront. (ie. -10-12-14 etc;)</p>

<p>Please help. Thanks</p>
