Thanks Ripta for pointing that out. That is the item I also changed. This is my first time writing a script, and as I see, I have my many steps to take. It would have been easier to use a flat file DB, but I was wanting to us mySQL. I have learned alot just today with this script. I am now going to work on randomness and then I will try ti figure out how to print the out in the format I want. Thanks for all the help.