saintex has asked for the wisdom of the Perl Monks concerning the following question:
And then:sub addressExists { my $address=shift @_; my $sql = 'SELECT * FROM emails WHERE `email`=?'; my $sth = $dbh->prepare( $sql ); $sth->execute($address); }
#open connection # some code here and then: while (my $address=@address) { &addressExists($address); # other stuff } #close connection
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: prepared statement
by ikegami (Patriarch) on Aug 18, 2010 at 16:49 UTC | |
by james2vegas (Chaplain) on Aug 18, 2010 at 17:27 UTC | |
by saintex (Scribe) on Aug 18, 2010 at 19:30 UTC | |
by ikegami (Patriarch) on Aug 18, 2010 at 20:23 UTC | |
by james2vegas (Chaplain) on Aug 18, 2010 at 20:03 UTC | |
by saintex (Scribe) on Aug 19, 2010 at 11:11 UTC | |
by Tux (Canon) on Aug 19, 2010 at 14:00 UTC | |
|
Re: prepared statement
by jethro (Monsignor) on Aug 18, 2010 at 16:16 UTC | |
by saintex (Scribe) on Aug 18, 2010 at 16:43 UTC |