in reply to Re: DBI : select count
in thread DBI : select count

you're searching for the record where the username is literally $form_values...
Um, no. The outermost quotes are double, so the variable is in fact being interpolated. Nonetheless, using placeholders as you've illustrated is a much better approach.

Replies are listed 'Best First'.
Re: Re (2): DBI : select count
by punchcard_bob (Initiate) on May 09, 2002 at 17:29 UTC
    Chris - spot on for the placement of finish()! Exactly the sort of fault that comes from staring at code too long - didn't even see it. Thanks.

    Tommy - thanks, but like VSarkiss says above, the quotes make it scope the hash and generates the query properly. But you guys are right about the usefulness of placeholders.