in reply to DBD::mysql trouble

Joost,zwon 's SQL looks fine to me. As a small point, I'll answer your question here:
system("clear"); #system("clear") only works on Unix based systems, ne +ed to come up with #something that works on windows
The Windows command is "cls".