Gossamer Forum
Home : Products : DBMan : Installation :

JPDeni ! I need your help

Quote Reply
JPDeni ! I need your help
Hi JPDeni,

I am using your login mod for DBMan. The problem is, when a user try to add a record, the ID automatic insert the ID number in the field. But when the record has been added, it insert that person's username in the field. Is there anyway that person's username will be insert when a record is add (not after added)? Thank you JPDeni. Your mods are pretty good and I love them.

Quote Reply
Re: JPDeni ! I need your help In reply to
In db.cgi, sub get_defaults, after

Code:

foreach $field (keys %db_defaults) {
$default{$field} = $db_defaults{$field};
}
add

($auth_user_field >= 0) and ($db_defaults{$db_cols[$auth_user_field]} = $db_userid);

JPD
http://www.jpdeni.com/dbman/