Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
foreach $num_doc(@num_from_doc) { # Now retrieve data from the table. $sth = $dbh->prepare('SELECT num FROM num_table WHERE num <> ?'); + $sth->execute($num_doc); my $num_in_db = $sth->fetchrow_array(); print "**This $num_doc is not in the DataBase<br>"; print "Here is what I found: $num_in_db<br>"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compare items in DB
by kyle (Abbot) on Mar 05, 2008 at 19:50 UTC | |
by Anonymous Monk on Mar 05, 2008 at 20:05 UTC | |
by apl (Monsignor) on Mar 05, 2008 at 20:12 UTC | |
by Anonymous Monk on Mar 05, 2008 at 20:18 UTC | |
by kyle (Abbot) on Mar 05, 2008 at 20:51 UTC | |
|
Re: Compare items in DB
by dragonchild (Archbishop) on Mar 05, 2008 at 21:12 UTC | |
by Anonymous Monk on Mar 06, 2008 at 20:54 UTC | |
by dragonchild (Archbishop) on Mar 06, 2008 at 23:43 UTC | |
|
Re: Compare items in DB
by Corion (Patriarch) on Mar 05, 2008 at 19:28 UTC | |
by Anonymous Monk on Mar 05, 2008 at 19:46 UTC |