in reply to dbi newbie question
DBI wouldn't do what you describe, unless you have duplicate rows in your tables or something.
Perhaps the problem is that you are always appending to $websites and not resetting it? Try putting
after the execute call.$websites = '';
In Section
Seekers of Perl Wisdom