Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
The stupid question is the question not asked
 
PerlMonks  

Re: Re: DBI Placeholders

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 09, 2001 at 21: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.