php link system problem
<pre><code> &lt;?php
 $total=3;
 echo ' 
&lt;div class="idsdiv"&gt;&lt;a href="profile.php?id=$total"&gt;.$total.&lt;/a&gt;&lt;div&gt;  ';
 ?&gt;
</code></pre>

<p>i want to appear $total variable number in the link.why is this script not working?</p>
