no need for $max or $i just a hack on a bored daywhile ($sth->fetch) { push @oids, $oid; } for (@oids) { my $price = $q->param("item_" . $_ . "_price"); $sth = $dbh->prepare(q{UPDATE items set price = ? WHERE oid = ?}); $sth->execute($price, $_); }
In reply to RE: DBI Select and Update
by Anonymous Monk
in thread DBI Select and Update
by nutate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |