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>"; }
In reply to Compare items in DB by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |