title: Why is my PHP Database query returning 6 rows when only 2 entries?
body: <p>I've got 2 entries in my database table, however for some reason my PHP/SQL is showing 6 replicates of each.</p>
  
  <pre><code>&lt;? 
  mysql_select_db($database_database_connection, $database_connection);
  $getdevices=("SELECT * FROM Device_tbl");
  $getdevicesresult = mysql_query($getdevices, $database_connection) or die(mysql_error());
  while($device=mysql_fetch_assoc($getdevicesresult))
  {
  foreach($device as $devicevalue) { ?&gt;
  
          &lt;div class="hold-cont"&gt;
          &lt;div class="holder"&gt;
              &lt;div class="image-hold" &gt;
                  &lt;img class="image-icon" src="images/android.png"/&gt;
  &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="device-name devicename-txt"&gt;&lt;? print_r($device['Model']);  ?&gt;&lt;/div&gt;
      &lt;/div&gt;
  
  &lt;? }}
  mysql_close();
  ?&gt;
  </code></pre>
  
  <p>That should only return the 2 rows, not 6 for each entry.  Any ideas?</p>