Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: DBI Placeholders

by qball (Beadle)
on Apr 10, 2001 at 01:13 UTC ( [id://71159]=note: print w/replies, xml ) Need Help??


in reply to Re: DBI Placeholders
in thread DBI Placeholders

Great comment, but what if I want to use the routine several times in the script using different variables?

qball~"I have node idea?!"

Replies are listed 'Best First'.
Re: Re: Re: DBI Placeholders
by astanley (Beadle) on Apr 10, 2001 at 01:16 UTC
    simply recall the execute() function with each different variable - you are not limited to using only the listed variable - you could even do it without a variable at all as in: execute("1"); Only by putting the variable in the $sql definition do you limite yourself to having to "re-prepare" the statement for every value you want to check.

    -Adam Stanley
    Nethosters, Inc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found