Gossamer Forum
Home : Products : DBMan : Installation :

"admin" appearing in a field

Quote Reply
"admin" appearing in a field
Hi. I am testing adding new records to my database and the string "admin" appeared instead of the person's name I entered. Modifying the record fixes the error.

What might cause this?

Thanks,
KimL
Quote Reply
Re: "admin" appearing in a field In reply to
Kim,

The problem could be your $auth_user_field variable. Make sure that you set it to the Userid or User field in your %db_def array.

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: "admin" appearing in a field In reply to
I can guarantee that the problem is the $auth_user_field variable.

If you are going to allow registered users to add records and you want them to be able to either view or delete/modify their own records, you need to have a userid field in your field definitions and you need to set the $auth_user_field to the number of that field.

If you do not want the above, you must set

$auth_user_field = -1;


------------------
JPD