in reply to Re^3: How to retain a value passed from another link to a script
in thread How to retain a value passed from another link to a script
Please help !!!if ( ($action eq "UPDATE") && ($orderid =~ /\d+/)) { my @data=(); my @fields = qw!unitprice quantity discount !; for my $f (@fields){ push @data,$q->param($f) || '' ; } push @data,$orderid; my $sql = qq! UPDATE "Order_Details" SET "UnitPrice" = ?, "Quantity" = ?, "Discount" = ? WHERE "OrderID" = ? !; my $count = $dbh->do( $sql,undef,$orderid ); $msg = "$count Record updated - $sql, $orderid";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to retain a value passed from another link to a script
by poj (Abbot) on Jul 11, 2014 at 19:48 UTC |