There's a ton of examples of there, but once I dig up some code that I have that produces csv delimeted data from a mysql db on the command line I'll repost. This way you can automate it to a degree. -- Jon Molesa rjmolesa at consoltec.net if you're bored or curious http://rjmolesa.com