Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: can anyone help to detect any error in this script

by Abigail (Deacon)
on Jul 11, 2001 at 11:00 UTC ( #95612=note: print w/replies, xml ) Need Help??


in reply to can anyone help to detect any error in this script

Your data file has quotes around the variables. You never strip the quotes, or do something with the double backslash for that matter. "sgsms.asia.com" is not a valid hostname, because quotes are not allowed in a hostname. Nor is "4200" an integer. Or "C:\\tempperl" a directory.

The error log says you didn't supply a host name because of your bogus die message. Fix your die message and you'll get better error messages.

-- Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://95612]
help
Chatterbox?
[abner]: can someone give me a hint about how to query a mysql table based on matches in two columns?
[atcroft]: abner: Do you mean something like SELECT `foo`, `bar` FROM `table_name' WHERE (( `foo` = "asdf" ) OR ( `bar` = 'asdw' )); Or something else?
[abner]: yes. i am familiar with mysql but ignorant about how to get around the fact that placeholders can only represent single scalar values.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-01-24 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (201 votes). Check out past polls.