Hi. I am trying to display all my data in table format with the first five results in the first row, the next five in the second row, ect. Right now it displays the first result five times in the first row, the second result five times in the second row, etc. How can I write the loop to have it display each result one time? Thank you for your time. [code]<?php $Host = "localhost"; $User = ""; $Password = ""; $mydatabase = "fashion"; $db = mysql_connect("$Host", "$User", "$Password") or die ("Couldnt connect to the server."); mysql_select_db ("$mydatabase",$db) or die ("Couldnt select the database. ".mysql_error()); $result = mysql_query("select * from pictures"); while ($myrow = mysql_fetch_row($result)) { echo " <table cellSpacing=0 cellPadding=10 width=90% border=0 hspace=0 vspace=0> <tr valign = top align=center> <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td> <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td> <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td> <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td> <td><img POSITION: absolute; src='$myrow[2]' hspace=0 border=0></img></td> </tr> <tr align=center> <td>$myrow[1]</td> <td>$myrow[1]</td> <td>$myrow[1]</td> <td>$myrow[1]</td> <td>$myrow[1]</td> </tr> </table> "; } ?>[/code]