Right, just got done creating my script that allows me and someone else to add a portfolio item to site, it allows u to upload pic from hd, then creates thumbnail also for it and makes thumbnail link to original image with a title above it.. it shows fine and everything, only problem is that I would like it to show 4 items across (columns) and then start a new row underneath, and so on.. now it keeps on making new columns or rows for it, and keeps going I can make it go across or down but it keeps going.. so I need it to show just 4 across then start new line, heres my code... <html> <head> <title>Portfolio site</title> </head> <body> <?php // Connect to the database $db = mysql_connect("localhost","****","****"); mysql_select_db ("****"); // Request info from Portfolio table $result = mysql_query("SELECT * FROM portfolio"); // Start showing results echo "<table border = '0' width = '780' align='center'><tr>"; while ($rows = mysql_fetch_row($result)) // keeps looping till all items from DB are shown { echo "<td>$rows[1]<BR><a href='$rows[2]'><img src=$rows[3]></a></td>"; } echo "</tr></table>"; ?> </body> </html> **** = hidden rows[1] = title rows[2] = original image rows[3] = thumbnail image Script in action: http://www.toe-art.com/QualityCreations/portfolio.php -the TF avater pic looks not right since it got resized b/c it was too small and it then got resized bigger instead.. Thanks for any help/suggestion..