XP is just a number | |
PerlMonks |
Re^2: execute failed: called with 2 bind variables when 0 are neededby afoken (Chancellor) |
on Dec 11, 2013 at 19:54 UTC ( [id://1066697]=note: print w/replies, xml ) | Need Help?? |
change $sth->execute(1, 10); to $sth->execute(); Please don't. Placeholders prevent SQL injections and allow caching of prepared statements, so:
More information: DBI, Bobby Tables, Re: Counting rows Sqlite, Re^2: Massive Memory Leak, Re^5: Variable interpolation in a file to be read in. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|