Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Using variables withing a mysql query

by psini (Deacon)
on May 11, 2008 at 16:31 UTC ( [id://685960]=note: print w/replies, xml ) Need Help??


in reply to Using variables within a mysql query

If the string is enclosed in double quotes the embedded variable should be replaced whit its value.

Did you try a test print of the entire query before submitting it to the DBMS?

BTW, I hope you are aware that generated queries are a potential security issue (risks from SQL injection) and should be used with care

  • Comment on Re: Using variables withing a mysql query

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-26 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found