Thank you John & Randy for your suggestions. I moved the <TR> to inside the loop and took out the parens. It's working now. Now to work on the next two lines of code until I come back. again thanks, judy _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php