title: jquery popup message box working in the while loop
body: <p>I have a popup message box working in the while loop, but in the popup address field the same address is shown for all entries.</p>
  
  <p>Can anyone tell me what I'm doing wrong?</p>
  
  <p><strong>Html Jquery Script</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
      $('#button').click(function(e) { 
          $('#modal').reveal({ 
              animation: 'fade',                   
              animationspeed: 600,                       
              closeonbackgroundclick: true,              
              dismissmodalclass: 'close'   
          });
      return false;
      });
  });
  &lt;/script&gt;
  
  &lt;table&gt;
  $query1=mysql_query("select * from customers order by id desc");
  while($row1=mysql_fetch_array($result))
  {
  ?&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;?php echo $row1['firstname']; ?&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;?php echo $row1['lastname']; ?&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;?php echo $row1['dob']; ?&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;?php echo $row1['email']; ?&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;a href="#" class="button"&gt;Address&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;?php echo $row1['phone']; ?&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;?php echo $row1['country']; ?&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td&gt;&lt;div align="center"&gt;&lt;?php echo $row1['city']; ?&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  
  &lt;Popup Start&gt; 
  
  &lt;div id="modal"&gt;
  &lt;div id="heading"&gt;
  Sign Up! Customer's Address
  &lt;/div&gt;
  &lt;div id="content"&gt;
  &lt;p&gt;&lt;?php echo $row1['address']; ?&gt;&lt;/p&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;Popup End&gt;
  
  &lt;?php }?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p><strong>Popup Showing same address in every row of the table</strong></p>