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?? |
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).
In Section
Seekers of Perl Wisdom
|
|