in reply to Re: No results from script
in thread No results from script
sub get_customer { my ($dbh, $track_ref, @track_ref) = @_; $dbh = WebDB::connect (); my $sth = $dbh->prepare ("SELECT * FROM Shipments WHERE customer_id = +?"); $sth->execute($customer_id); while (my @track_ref = $sth->fetchrow_array ()){ print table ({-border => 0}, Tr ({-align => "CENTER", -valign=>"TOP", -BGCOLOR=>"silver", -st +yle=>"font-family: verdana; font-size: 10pt;"}, th ({-width=>"50"},("Customer ID")), th ({-width=>"50"},("Carrier")), th ({-width=>"90"},("Tracking Number")) + )); print table ({-border => 0}, Tr ({-valign=>"center", -style=>"font-family: verdana; font-size: +10pt;"}, td ($track_ref[7]), td ($track_ref[3]), td ($track_ref[4]) )); } print start_form (-action => "http://wwwapps.ups.com/tracking/tracking +.cgi", -method => "POST"), table ( Tr ( td ("UPS Tracking Number:"), td (textfield (-name => "tracknum")) ), ), submit (-name => "choice", -value => "Track"), end_form (); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: No results from script
by naChoZ (Curate) on Jun 04, 2003 at 15:25 UTC |