Welcome Guest, Not a member yet? Register   Sign In
Username vs User ID
#2

[eluser]JamesTaylor[/eluser]
I would do it by user_id - the user_id would be the primary key on your users table, set to auto-incrementing.

You may never want to let the user see that they have user_id, from their persective you could always use their unique username when displaying on screen but it'll be easier / cleaner for you to work with an id value for coding purposes given the experience i have (which is by no means as much as some on here!)


Messages In This Thread
Username vs User ID - by El Forum - 03-03-2010, 04:37 AM
Username vs User ID - by El Forum - 03-03-2010, 05:46 AM
Username vs User ID - by El Forum - 03-03-2010, 05:47 AM
Username vs User ID - by El Forum - 03-03-2010, 05:57 AM
Username vs User ID - by El Forum - 03-03-2010, 07:51 AM
Username vs User ID - by El Forum - 03-03-2010, 09:04 AM
Username vs User ID - by El Forum - 03-03-2010, 12:47 PM
Username vs User ID - by El Forum - 08-07-2010, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB