Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Mysql error near values(

by BazB (Priest)
on Feb 04, 2006 at 23:31 UTC ( #528020=note: print w/replies, xml ) Need Help??

in reply to Mysql error near values(

DBI's do() method does not use placeholders - it's there specifically for drivers that do not support placeholders.

You should quote any strings in the SQL that you're executing.
You might want to format things a little better so that any errors are easier to find, rather than having a huge block of code (which in this case has two SQL statements).

Edit: what am I talking about? do() does support placeholders.

If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.

Replies are listed 'Best First'.
Re^2: Mysql error near values(
by reneeb (Chaplain) on Feb 04, 2006 at 23:37 UTC
    do does support placeholders. Have a look at

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-01-18 20:11 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (54 votes). Check out past polls.