bogdaniel Posted November 8, 2008 Share Posted November 8, 2008 hello after i played a while with php doing diferent things.. i would like to start building a members system from scratch can someone provide me an example of a mysql table for this kind of script. Link to comment https://forums.phpfreaks.com/topic/131917-mysql-user-system-tables/ Share on other sites More sharing options...
Mchl Posted November 8, 2008 Share Posted November 8, 2008 Can't see what would be difficult in here... anyway here's what I use in my current project. CREATE TABLE `users` ( `ID` int(10) NOT NULL AUTO_INCREMENT COMMENT 'Primary key', `name` varchar(255) NOT NULL, `surname` varchar(255) NOT NULL, `login` varchar(255) NOT NULL, `password` char(32) NOT NULL, `active` tinyint(1) NOT NULL COMMENT 'Is the account active?', `registrationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Link to comment https://forums.phpfreaks.com/topic/131917-mysql-user-system-tables/#findComment-685323 Share on other sites More sharing options...
bogdaniel Posted November 8, 2008 Author Share Posted November 8, 2008 Can't see what would be difficult in here... anyway here's what I use in my current project. CREATE TABLE `users` ( `ID` int(10) NOT NULL AUTO_INCREMENT COMMENT 'Primary key', `name` varchar(255) NOT NULL, `surname` varchar(255) NOT NULL, `login` varchar(255) NOT NULL, `password` char(32) NOT NULL, `active` tinyint(1) NOT NULL COMMENT 'Is the account active?', `registrationDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; hello it's not dificult i just wanted onther opinion to see how others did .. maybe someone did something more better. Link to comment https://forums.phpfreaks.com/topic/131917-mysql-user-system-tables/#findComment-685331 Share on other sites More sharing options...
Mchl Posted November 8, 2008 Share Posted November 8, 2008 Well then. What you think about my table? Link to comment https://forums.phpfreaks.com/topic/131917-mysql-user-system-tables/#findComment-685366 Share on other sites More sharing options...
bogdaniel Posted November 8, 2008 Author Share Posted November 8, 2008 Well then. What you think about my table? it's nice i like it on my table i didn't had an active option and i've didn't add for the moment details about the user only username password registration date and i've made some changes about what i had changed vchar to char on password field. Link to comment https://forums.phpfreaks.com/topic/131917-mysql-user-system-tables/#findComment-685380 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.