How to use unique ids generated in a php while loop in a jquery
<p>Can someone help me crack this issue? I have some data generated from my MySQL database with unique id's using a while loop.</p>

<pre><code>while ($row = mysql_fetch_array($query)){
  echo'&lt;tr&gt;
    &lt;td&gt;&lt;img src="expand.png" id="$row['id']"&gt;&lt;/td&gt;
    &lt;td&gt;'.$row['name'].'
      &lt;div id="'.$row['id'].'_Expanded"&gt;
        //some data regarding the selected id need to be displayed here
      &lt;/div&gt;     
 &lt;/td&gt;
&lt;/tr&gt;';
} 
</code></pre>

<p>I want the div to be hidden on page load, but when i click the image only a single div related to the id should expand in JQuery. </p>

<p>Can somebody help me to retrieve the individual ids to be used in JQuery. Thanks!</p>