I'm trying to setup a table for storing usernames, passwords and permissions in order to work with sessions / authentication
The INSERT statement for mysql I'm using is:
INSERT INTO user(username,password,permission) VALUES
('admin',PASSWORD('admin'),1);
This is not accepted. What's wrong with this insert?
The table 'user' is within my own 'testing' database and the datatypes are
username varchar(20)
password varchar(20)
permission int(1)
'id' is int(4) NOT NULL auto_increment;
Thanks,