You're very welcome!
It would take a quite a bit of changing in the db.cgi script to get the info you want, since the whole delete routine works on the $db_key and by the time you get the message on the delete success thing, the record is gone and you can't access it.
Not that it can't be done!
Look in db.cgi, sub delete_records for the following (I've taken out the comments on the lines):
Code:
$delete_list{$data[$db_key_pos]} ? ($delete_list{$data[$db_key_pos]} = 0) :
($output .= $line . "\n");
Change the above section to
Code:
if ($delete_list{$data[$db_key_pos]}) {
$delete_list{$data[$db_key_pos]} = 0;
$delete_name{$data[$db_key_pos]} = $data[
#];
}
else {
$output .= $line . "\n";
}
Replace
# above with the field number of your name field.
A little further down, you'll see
Code:
foreach $key (keys %delete_list) {
$delete_list{$key} ?
($errstr .= "$key,") :
($succstr .= "$key,");
}
Change this to
Code:
foreach $key (keys %delete_list) {
$delete_list{$key} ?
($errstr .= "$key,") :
($succstr .= "$delete_name{$key},");
}
I haven't tried this, but it should give you the list of names that have been successfully deleted. If any aren't deleted, though, you'll just get the ID number. Then again, the only reason they weren't deleted is because the ID wasn't found, so the name wouldn't be available anyway.
------------------
JPD