http://qs321.pair.com?node_id=1107824


in reply to perl hangs with a simple mySQL query

When you say "hang", do you mean you have to kill the process, or the client browser hangs? Is it possible that some of that data that you're including directly from the database is being misinterpreted as the start of a string, or other HTML element? In any case you should probably be escaping them with something like HTML::Escape.

What happens if you replace fetchrow() in the while loop with something that just supplies test data from an array?

  • Comment on Re: perl hangs with a simple mySQL query

Replies are listed 'Best First'.
Re^2: perl hangs with a simple mySQL query
by chuck (Initiate) on Nov 25, 2014 at 03:59 UTC
    Okay, it must have been a problem with the server. I switched to another webhosting service and the exact same code works fine. Thanks for the help everyone!