b310 has asked for the wisdom of the Perl Monks concerning the following question:
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 ()){ push (@track_ref, Tr ({-align => "CENTER", -valign=>"TOP", -BGCOLOR= +>"silver", -style=>"font-family: verdana; font-size: 10pt;"}, th ({-width=>"50"},("Customer ID")), th ({-width=>"50"},("Carrier")), th ({-width=>"90"},("Tracking Number")) + )); push (@track_ref, Tr ({-valign=>"center", -style=>"font-family: verdan +a; font-size: 10pt;"}, td ($track_ref[7]), td ($track_ref[3]), td ($track_ref[4]) )); } return (table ({-align => "CENTER", -border => 0}, @track_ref)); 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: No results from script
by naChoZ (Curate) on Jun 04, 2003 at 13:15 UTC | |
by b310 (Scribe) on Jun 04, 2003 at 14:05 UTC | |
by naChoZ (Curate) on Jun 04, 2003 at 15:25 UTC | |
|
Re: No results from script
by Thelonius (Priest) on Jun 04, 2003 at 13:17 UTC | |
|
Re: No results from script
by edoc (Chaplain) on Jun 04, 2003 at 13:16 UTC | |
by b310 (Scribe) on Jun 04, 2003 at 13:55 UTC | |
by edoc (Chaplain) on Jun 04, 2003 at 15:16 UTC | |
by b310 (Scribe) on Jun 04, 2003 at 15:44 UTC | |
by edoc (Chaplain) on Jun 04, 2003 at 16:00 UTC | |
|