title: Unterminated String Literal Error in Firebug
body: <p>I am getting error in Firefox <code>SyntaxError: unterminated string literal</code> when i try to include following code:</p>
  
  <pre><code>&lt;script&gt;
   function makeProdiv(data){
         var tbl_body = "";
         var tbl_row = "";
         tbl_row +="&lt;?php foreach($data as $row) {} ?&gt;" (Error at this line)
         tbl_body += tbl_row;
         return tbl_body;
   }
  &lt;/script&gt;
  </code></pre>
  
  <p>If i remove this row then error disappears.</p>
  
  <p>What i am trying: I am trying to loop through the result returned from DB and display values.</p>
  
  <p>Please anyone can assist?</p>