I want to associate the user's uid with their record(s) automatically. In the .cfg file should I name the (hidden) field uid or something else to avoid conflict?
Feb 15, 2001, 12:53 AM
Enthusiast / Moderator (885 posts)
Feb 15, 2001, 12:53 AM
Post #2 of 4
Views: 2465
Naming the field Userid as it is in the default settings will keep the record associated with the particular user. You just need to keep in mind the Userid field number needs to be identified in the auth_user_field setting a little further below in the config file.
Userid => [9, 'alpha', -2, 15, 0, '', '']
$auth_user_field = 9;
Userid => [9, 'alpha', -2, 15, 0, '', '']
$auth_user_field = 9;
Feb 15, 2001, 1:29 AM
Enthusiast / Moderator (885 posts)
Feb 15, 2001, 1:29 AM
Post #4 of 4
Views: 2448
I'm not a 'coder' so can't give you precise details although I'll try my best to explain how I've seen the terms used & integrated within the scripts and usage.
Userid => fieldname & placeholder within the db
userid => don't know although I have seen discussions here in the forums on the Upper/Lower case versions of the word.
uid => This one I've seen used for passing the Userid in URL's etc - for example
db.cgi?uid=default
$db_uid => Used within the coding to access/track the Userid as entered in the database.
Userid => fieldname & placeholder within the db
userid => don't know although I have seen discussions here in the forums on the Upper/Lower case versions of the word.
uid => This one I've seen used for passing the Userid in URL's etc - for example
db.cgi?uid=default
$db_uid => Used within the coding to access/track the Userid as entered in the database.