I made the suggested changes and it works. Thank you.
my $sth = $dbh->prepare ("SELECT field_1, field_2 FROM tablename WHERE + field_3=?"); $sth->execute(($Cookie1)) or "error"; foreach my $cookie_name (qw/C1 C2/) { my $cookie_value = $cgi->cookie($cookie_name); if (defined($cookie_value)) { $sth->execute(($cookie_value)); if (my $rec = $sth->fetchrow_hashref) { $f1 = $rec->{field_1}; $f2 = $rec->{field_2}; }
In reply to Re: Database Output
by Anonymous Monk
in thread Database Output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |