in reply to RE: DBI Select and Update
in thread DBI Select and Update
my $sth_udt = $dbh->prepare(qq{UPDATE items set price = ? WHERE oid = +?}); while (my $val = $sth->fetchrow) { my $price = param("item_${val}_price"); $sth_udt->execute($price, $val); # You could probably just do: # $sth_udt->execute(param("item_${val}_price"), $val); }
Cheers,
KM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: DBI Select and Update
by nutate (Novice) on May 31, 2000 at 19:25 UTC | |
|
DBI Select and Update
by agoth (Chaplain) on Jun 01, 2000 at 01:47 UTC |