Arimil Posted May 26, 2010 Share Posted May 26, 2010 So I began making my site today and I noticed a lot of places give users and id rather than referring to them by their username. So, my question is simply... why? Link to comment https://forums.phpfreaks.com/topic/203011-username-vs-user-id/ Share on other sites More sharing options...
premiso Posted May 26, 2010 Share Posted May 26, 2010 The main reason is, the user ID can remain the same, but some users like the option to change their user name. If you do not reference it by ID, then you have to change the username in multiple tables rather then just 1 table. Link to comment https://forums.phpfreaks.com/topic/203011-username-vs-user-id/#findComment-1063797 Share on other sites More sharing options...
Arimil Posted May 26, 2010 Author Share Posted May 26, 2010 Thanks took me a while to figure out what you meant there but I got it thanks. Link to comment https://forums.phpfreaks.com/topic/203011-username-vs-user-id/#findComment-1063801 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.