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.