PHP shipping cost
<p>Im trying to make a shippment cost to a php store, the point is to get the $subtotal number and add +5 +8 to the subtotal if the subtotal has a specific amount.</p>

<p>What i´ve got so far... Im not an PHP expert</p>

<pre><code>&lt;?php
$t=price($subtotal); 
if ($t&lt;50)
   {
   echo ($t+5);
   }
else if ($t&gt;=50 &amp;&amp; $t &lt;= 250)
   {
   echo ($t+8);
   }
else if
   {
   echo ($t);
   }
echo price($total+$t);
?&gt;
</code></pre>

<p>thanks in advance</p>
