title: Passing PHP variable to onClick method
body: <p>I'm pulling some data from MySQL using PHP and need to pass an ID as a parameter to a onClick() method.  </p>
  
  <pre><code>while($row = mysql_fetch_array($result))
  {   
    echo '&lt;a href=# onclick="showFilm('&lt;?php echo $row['ID'] ?&gt;')"&gt;' . 
      $row['Title'];
  }
  </code></pre>
  
  <p>I'm getting a syntax issue on the <code>echo</code> statement.  What am I doing wrong?</p>