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

Re: DBD::mysql::st execute failed: You have an error in your SQL syntax;

by perlfan (Vicar)
on Jun 22, 2016 at 13:07 UTC ( [id://1166257]=note: print w/replies, xml ) Need Help??


in reply to DBD::mysql::st execute failed: You have an error in your SQL syntax;

You have a trailing comma in the VALUES section of the SQL. I'd also not bother with $sth and prepare; use the do method and put your bind values (the proper number, that is) in an array (much cleaner).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-23 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found