> Funny thing, when I edit the source code and recompile, I will get less
> records brought back (say 5). All that I added was some print statements.
> Also it doesn't freeze at the same place in the code everytime. If I add some
> print statements, it might go so far. If I take out some print statements it
> dies somewhere else.

So, if you run your modified program from the command line, does it still work?

Mine works from the command line and through the web.  What kind of webserver 
do you have?

dave




