Gossamer Forum
Home : Products : DBMan : Installation :

Thanks for the help and one other question

Quote Reply
Thanks for the help and one other question
Hi again folks!

Thanks to those that helped me with the login issue before. I used your advice and all is well with that issue. My next question is hopefully a simple one, but perhaps due to too many late nights, I cannot figure it out.

I wish to have multiple databases. Obviously, using "default.*" will put everything in the same db, use the same configs, etc. Which files can remain as default and which ones would need to be renamed to reflect the unique db?

Thanks in Advance!

Ziggy Starkiller
Visit the GRUMPY OLD MEN website!
G R U M P Y O L D M E N
Acoustic Blues, Light Rock and Original Music
http://www.starkiller.com/grumpyoldmen
Quote Reply
Re: [starkiller] Thanks for the help and one other question In reply to
ok.. scratch that last question. It helps if I read a bit more, eh? =)

However I do have one question concerning a mod. Its the:
email_after_add.txt mod. I have it working to a point. It sends an email when a new record has been added. But the body of the email does not show the data that was submitted. Just says "The following record was added to the database:." and that is all. Is there something I am doing wrong?

Thanks again in advance.

ZigZag Starkiller
Cool


Visit the GRUMPY OLD MEN website!
G R U M P Y O L D M E N
Acoustic Blues, Light Rock and Original Music
http://www.starkiller.com/grumpyoldmen
Quote Reply
Re: [starkiller] Thanks for the help and one other question In reply to
Instead of:
foreach $col ($db_cols) {
print MAIL "$col -- $rec{$col}\n";
}


Try using:
foreach $column (@db_cols) {
print MAIL "$column: $in{$column}\n";
}

I believe I've used this one before and it should work, but I didn't test it.


Quote Reply
Re: [Watts] Thanks for the help and one other question In reply to
.....and to skip blank fields.


Code:
foreach (@db_cols) {
next if !$in{$_};
print MAIL "$_ : $in{$_}\n";
}