mnlight has asked for the wisdom of the Perl Monks concerning the following question:
my $sql = "select max(Number) from Volunteer where Date =? and Volunte +er = 'TBD'"; my $number = $dbh->selectcol_arrayref($sql, undef, $date); my $id = "Date = '$date' and Volunteer = 'TBD' and Number = $number +"; my $content = "Volunteer"; my $status = "$name"; my $sth=$dbh->prepare('UPDATE Volunteer set Volunteer =?, WHERE =?' +); my $rv=$sth->execute($status, $id); print $query->h1({-align=>'center'}, "You signed up for this d +ate $date"); $sth->finish (); $dbh->disconnect ();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Updating a database
by dws (Chancellor) on Jan 15, 2002 at 10:20 UTC | |
|
Re: Updating a database
by grep (Monsignor) on Jan 15, 2002 at 10:04 UTC | |
|
Re: Updating a database
by Zaxo (Archbishop) on Jan 15, 2002 at 11:02 UTC | |
|
Re: Updating a database
by screamingeagle (Curate) on Jan 15, 2002 at 10:37 UTC | |
by grep (Monsignor) on Jan 15, 2002 at 10:46 UTC | |
by George_Sherston (Vicar) on Jan 15, 2002 at 14:41 UTC |