in reply to Updating a database
You are attempting to sock an entire WHERE clause into a single placeholder. I think you want:
Note double quotes, they allow $id to be interpolated.my $sth=$dbh->prepare("UPDATE Volunteer set Volunteer =?, WHERE $id");
What does 'TBD' indicate? Are your Volunteers unidentified until they attain max(Number)? I'm a little puzzled by what your code seems to try to do. I should think:
would be enough. I mistrust having the table and column have the same name.my $sth = $dbh->prepare("select Date from Volunteer where Volunteer=?" +); $sth->execute($user);
After Compline,
Zaxo
|
|---|