Gossamer Forum
Home : Products : DBMan : Customization :

Can't specify user id

Quote Reply
Can't specify user id
Hello.

I've made my first database and I have the following problem. I've created an entry for the key and another one for the user id.

As admin I want to add a new record and specify the key and id, but the problem is that after entering the new record on the database the id is always "admin", even that I had specified the id. After that I can modify the record and put the correct id.

Why doesn't work directly and works modifying it?

Thanks in advance.

Quote Reply
Re: Can't specify user id In reply to
In the db.cgi script, sub add_record, change

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

to

Code:

unless ($per_admin) {
($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);
}
JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Can't specify user id In reply to
Thank you very much.

Now it works.

You're a DBMan guru :-)

Quote Reply
Re: Can't specify user id In reply to
Smile You're welcome!


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