Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2022-08-19 04:15 GMT
Find Nodes?
    Voting Booth?

    No recent polls found