And, of course, add some error-checking to the database query itself...
In reply to RE: Re: writing a file by jreades in thread writing a file by Anonymous Monk