PHP syntax output wrong string : <pre><code>echo "&lt;td&gt;&lt;a href='#'&gt;Edit&lt;/a&gt; | &lt;a href='javascript:delpost('".$cat2['id']."','".$cat2['name']."')'&gt;Delete&lt;/a&gt;&lt;/td&gt;";
</code></pre>

<p>This PHP code will output this:</p>

<pre><code>&lt;a href="javascript:delpost(" 85','a)'&gt;Delete&lt;/a&gt;
</code></pre>

<p>But I want this:</p>

<pre><code>&lt;a href="javascript:delpost('85','a')"&gt;Delete&lt;/a&gt;
</code></pre>

<p>What's wrong with my code?</p>
