Parse error on nested javascript
<p>Im trying to nest java script in a php echo tag. Im getting this error</p>

<blockquote>
  <p>Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' </p>
</blockquote>

<p>How can i nest that java script in that echo tag properly?</p>

<pre><code>if($rowCount%5===0) { 
    echo '&lt;/table&gt;&lt;br/&gt;&lt;br/&gt;&lt;script type='text/javascript' src='http://ads.com'&gt;&lt;/script&gt;&lt;br/&gt;&lt;br/&gt;&lt;table align="center" width="70%"&gt;&lt;tr&gt;'; 
    $rowCount = 0; 
} 
</code></pre>
