in reply to Varying numbers of DBI placeholders
so that I could do something like this: $sql->execute($item1,$item2,$item3);You have to pass exactly as many arguments to execute() as you have placeholder. Fortunately, $sql->execute(@items); will do the trick, assuming you've populated @items with the right number of values.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Varying numbers of DBI placeholders
by MrCromeDome (Deacon) on Apr 18, 2002 at 18:43 UTC |