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
In reply to Re^2: execute failed: called with 2 bind variables when 0 are needed
by afoken
in thread execute failed: called with 2 bind variables when 0 are needed
by perloz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |