title: sent an id to a js function. Lost with the ' and the "
body: <p>it's about 30 minutes that im searching for the issue....</p>
  
  <pre><code>foreach($resultat as $ligne) {  
      echo "&lt;TR&gt;";
      echo "&lt;TD&gt;&lt;a href='javascript:selectResources('".($ligne['ID'])."')'&gt;".($ligne['login'])."&lt;/TD&gt;&lt;TD&gt;".($ligne['queen'])."&lt;/TD&gt;&lt;TD&gt;".($ligne['worker'])."&lt;/TD&gt;
        &lt;TD&gt;".($ligne['warrior'])."&lt;/TD&gt;&lt;TD&gt;".($ligne['pollen'])."&lt;/TD&gt;&lt;TD&gt;".($ligne['wax'])."&lt;/TD&gt;";
       echo "&lt;/TR&gt;";
  }
  </code></pre>
  
  <p>And the problem is there : <code>"&lt;TD&gt;&lt;a href='javascript:selectResources('".($ligne['ID'])."')'&gt;"</code></p>
  
  <p>Im trying to take the sql ID about the user and send it in parameters to a javascript function, but im lost with the ' " ... </p>
  
  <p>It's say unexpected end of input, and if i delete this part it works....</p>
  
  <p>Car someone help me, giving an easier way or just explaning how correctly works the ' and " .... thx </p>