rincewind456 wrote:Well presumably you will be using some form of registration, so you will need to gather users info, so with that in mind this would seem like a good option
CREATE TABLE `users` (
`id` int(11) unsigned NOT NULL auto_increment,
`firstname` varchar(20) default NULL,
`lastname` varchar(20) default NULL,
`email` varchar(255) default NULL,
`username` varchar(20) default NULL,
`password` varchar(50) default NULL,
`level` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB ;
Don't forget that you will need to add the quote_smart() function to the code you have posted, as the script will fail otherwise.
Thanks for the reply rincewind456, in fact i dont need/want users to creat their on account, i want to grant them limited acess, with a specific uer/pass, always with the admin full control.
So Based in this i think the db_user will be limited to:
CREATE TABLE `users` (
`id` int(11) unsigned NOT NULL auto_increment,
`username` varchar(20) default NULL,
`password` varchar(50) default NULL,
`level` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB ;
I hope i just understood your mysql code posting :rolleyes:
rincewind456 wrote:Don't forget that you will need to add the quote_smart() function to the code you have posted, as the script will fail otherwise.
Sorry for my ignorance, but i'm not getting your point, any help here? :p