in reply to SQL While loop problem.
Hi there, in addition to the advice given by others, I suggest you take a look at Placeholders from the DBI documentation. Also you could use HTML::Template to seperate your HTML code from your Perl code.