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

Re: execute failed: called with 2 bind variables when 0 are needed

by ig (Vicar)
on Dec 11, 2013 at 00:49 UTC ( #1066532=note: print w/replies, xml ) Need Help??


in reply to execute failed: called with 2 bind variables when 0 are needed

To put it another way, change $sth->execute(1, 10); to $sth->execute(); and your SQL statement will run as is (assuming your database has the queried table and fields).

Replies are listed 'Best First'.
Re^2: execute failed: called with 2 bind variables when 0 are needed
by afoken (Canon) on Dec 11, 2013 at 19:54 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-09-23 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (130 votes). Check out past polls.

    Notices?