Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: perl hangs with a simple mySQL query

by Loops (Curate)
on Nov 19, 2014 at 21:17 UTC ( #1107824=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1107824]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-04-17 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?