Bob, My answer is a PHP alternative. If you're going command line, I'm not skilled enough in SQL to help you. -Jack -- -Jack Timmons http://www.trotlc.com Twitter: @jorachim